CarpeMessaging
Install on Shopify

Help · Automations

Webhook recipes

Each recipe is a webhook step in an automation: what starts it, the body to send, and where the other tool gives you the address to paste into URL. The Webhook steps page explains the step itself. Only an owner or a manager can add one.

Each recipe starts from a choice in Start from, which fills in What it sends. Add a detail writes each detail into the body for you, and Send a test sends one call with a made-up person so you can see the other tool receive it. These are other companies' tools; their own help is the last word on where a button is.

Add a row to a spreadsheet

Use Zapier or Make to add a Google Sheets row for each person who reaches the step — every new order, say. Choose Google Sheets row (via Zapier or Make):

{
  "email": "{{email}}",
  "first_name": "{{first_name}}",
  "last_name": "{{last_name}}",
  "phone": "{{phone}}"
}

To add the order number, add a line such as "order": "", put the cursor between its quote marks and pick Order number with Add a detail.

Tell your team in Slack or Discord

Post a message in your team's chat — a big order, a VIP's first order. Choose Slack message, then change the body to:

{
  "text": "{{first_name}} {{last_name}} ({{email}}) just placed order {{event:order_number|\"\"}}"
}

In Slack, create an app, enable its Incoming Webhooks, add one to your channel, and paste its address into URL. For Discord, choose Discord message and use content instead of text:

{
  "content": "{{first_name}} {{last_name}} ({{email}}) just placed order {{event:order_number|\"\"}}"
}

In Discord, open the channel's settings, then Integrations, then Webhooks, and press Copy Webhook URL. Either address is a key to your channel, which is why only an owner or a manager sees it in full.

Award loyalty points

Choose Loyalty points:

{
  "email": "{{email}}",
  "points": 100,
  "reason": "Automation step"
}

Change the points and the reason, and the names to the ones your loyalty app's developer documentation gives, with its key in a header — often Authorization. A loyalty app that remembers the webhook-id header never awards points twice for one call.

Mail a postcard

Start from Abandoned checkout, add a 7-day Wait after its last email, then a webhook step with Your own system. Change the body to the name and address fields your postcard service wants, filling each from Ship to with Add a detail — Address line 1, City, and so on.

Update a CRM

Choose Your own system, which fills in the person's profile ID, email address, name and phone number:

{
  "profile_id": "{{profile_id}}",
  "email": "{{email}}",
  "first_name": "{{first_name}}",
  "last_name": "{{last_name}}",
  "phone": "{{phone}}"
}

Change the names to the ones your CRM expects, and put its key in a header. If it takes no calls of its own, Zapier or Make can catch the call.

Your own system

Choose Your own system and change the body to what your software expects. Whoever builds the receiving end should check our signature, answer within 10 seconds with a success code before any slow work, and ignore a webhook-id it has already handled. The Check our signature section of the Webhook steps page has the check.