Skip to content

Connect Dialstitch to n8n, Activepieces or Make

Use Dialstitch webhooks as triggers and the REST API as actions in n8n, Activepieces or Make, with six ready-to-build recipes.

11 min readUpdated
Sticker illustration of a ringing phone sending a lightning bolt along a dotted path through connected gear nodes to an envelope
On this page

n8n, Activepieces and Make can connect Dialstitch to the rest of your tools today, without a connector. Dialstitch sends a signed webhook when something happens, and the REST API lets your workflow act on what comes back. This guide shows you how to set up both, wire them into each tool, and build six automations teams ask for most.

Native n8n and Activepieces connectors are planned and will do this setup for you. Until then, everything here works, and it keeps working afterwards.

How it fits together

Every automation is a trigger, then actions.

  • Triggers are webhook events. Dialstitch POSTs an event to a URL your automation tool gives you. There are 15 events: call.started, call.ended, call.missed, call.recapped, voicemail.received, sms.received, sms.sent, contact.created, contact.updated, disposition.logged, moment.detected, contact.at_risk, meeting.booked, meeting.cancelled and audience.entered.
  • Actions are API calls. Your workflow calls https://dialstitch.com/api/v1 to read a call's summary, add a note to a contact, send a text, start a click-to-call or send in a lead.

Many recipes only need the trigger. The API comes in when you want more detail or want to write something back.

Before you start

  • Plan. The API and webhooks are part of the Pro and Contact Centre plans. See pricing.
  • Who can set it up. Only owners and admins can create API keys and webhooks.
  • A public https URL. Dialstitch only sends to https on the standard port, on a public host, with no username or password in the URL. A self-hosted n8n running on your laptop at localhost won't get events. The cloud versions of all three tools are fine.
  • Limits. 120 API requests a minute per key, and up to 20 webhooks per organization.

Set up Dialstitch

Create an API key

You only need a key if your workflow calls the API. A trigger on its own doesn't.

  1. Go to API & Webhooks. It's in the admin sidebar under Integrations. The API Keys tab opens.
  2. Under New key, enter a Name that says what uses it, such as "n8n automations".
  3. Pick when it Expires: Never, In 30 days, In 90 days or In a year.
  4. Under Scopes, tick only what your workflows need. For the recipes below that's calls:read, contacts:write and leads:write. Add messages:write if a workflow will send texts, and webhooks:manage if you want to add webhooks through the API.
  5. Select Create key and copy the key that starts with dpk_. It's shown once.

Your tool sends it on every request as a header named Authorization, with the value "Bearer " followed by the key. A key missing a scope gets a 403 with insufficient_scope, so check scopes first when something fails.

Add a webhook

Get the webhook URL from your automation tool first (each tool's section below says where). Then:

  1. Go to API & Webhooks and open the Webhooks tab.
  2. Under Add endpoint, paste the URL. Add a Description if it helps, like "n8n missed calls".
  3. Tick the Events this workflow needs, and only those. One webhook per workflow is easier to debug.
  4. Select Add endpoint and copy the signing secret that starts with whsec_. It's shown once. You need it to check signatures.
  5. Select Send test event. Dialstitch posts a signed test.ping right away and shows whether your tool answered.

You can do the same through the API instead: POST /webhooks with url, events (a list of event names) and an optional description, using a key with webhooks:manage. The response includes the secret, once. See Webhooks.

What a delivery looks like

Every event arrives as a JSON body with four fields: id (the delivery id), type (the event name), created_at, and data, which holds the event itself. Inside data you'll always find event and occurred_at, and then what the event is about:

  • Call events (call.started, call.ended, call.missed, call.recapped, voicemail.received) carry call, with its id, direction, from, to, remote_number (the other party), started_at and duration_seconds. They also carry contact (id, name, company) and user (id, name, email, the person who handled it). Either can be empty when nobody matches. call.recapped adds summary, the AI summary as text.
  • Text events carry message, with id, from, to, body and conversation_id, plus contact and user.
  • meeting.booked and meeting.cancelled carry meeting, with title, starts_at, ends_at, time_label (the start time as the caller heard it), time_zone, caller_name, guest_email, source (ai for the AI receptionist, link for a booking link) and status, plus remote_number and contact.
  • contact.at_risk carries contact, user (the contact's owner), remote_number, health (score, band, previous_band and reasons, a list of plain-English reasons) and the contact's latest call, or their latest text if they've never called.

The X-Dialstitch-Event header repeats the event name, X-Dialstitch-Delivery the delivery id, and X-Dialstitch-Signature carries the signature.

Connect n8n

  1. Create a workflow and add a Webhook node as the trigger.
  2. Set its HTTP method to POST. Keep the long random path n8n generates.
  3. n8n gives each Webhook node a test URL and a production URL. Paste the test URL into Dialstitch while you build, start listening in n8n, then select Send test event in Dialstitch. The test.ping shows up in the node's output.
  4. To fetch something from Dialstitch, add an HTTP Request node. For authentication, create a Header Auth credential: the name is Authorization and the value is "Bearer " followed by your dpk_ key. Point the URL at https://dialstitch.com/api/v1 plus the endpoint, for example /calls/ followed by the call id from the webhook.
  5. When it works, activate the workflow and change the URL on the Dialstitch webhook to the production URL. The test URL only listens while you're testing.

Connect Activepieces

  1. Create a flow and pick the Webhook trigger, then Catch Webhook.
  2. Copy the webhook URL Activepieces shows and add it in Dialstitch.
  3. Select Send test event in Dialstitch so Activepieces has a sample to map fields from.
  4. For actions, add the HTTP piece and choose Send HTTP request. Set the URL to https://dialstitch.com/api/v1 plus the endpoint, and add a header named Authorization with "Bearer " and your key.
  5. Publish the flow.

Connect Make

  1. Create a scenario and add the Webhooks app's Custom webhook module as the trigger.
  2. Add a new webhook, give it a name and copy the address Make creates.
  3. Add that address in Dialstitch, then select Send test event while Make is waiting for data. Make learns the fields from that first request. test.ping only carries a short message, so trigger a real event once too, like a call you don't answer, to get the full set of fields.
  4. For actions, add the HTTP app's Make a request module. Use https://dialstitch.com/api/v1 plus the endpoint, and add an Authorization header with "Bearer " and your key.
  5. Turn the scenario on.

Check the signature

Anyone who learns your webhook URL could post fake events to it. The signature proves a request came from Dialstitch. The X-Dialstitch-Signature header looks like t= a timestamp, a comma, then v1= a long hex string. To check it:

  1. Take the timestamp from t and the raw request body exactly as it arrived, byte for byte, before anything parses it.
  2. Join them with a full stop: the timestamp, a ".", then the raw body.
  3. Compute an HMAC-SHA256 of that text using your endpoint's whsec_ secret as the key, written as hex.
  4. Compare it with the v1 value. If they match and the timestamp is within 5 minutes of now, the event is genuine.

The catch is step 1. Most no-code tools parse the JSON for you, and re-encoding it won't give you the same bytes, so the signature won't match. Where your tool can keep the raw body and has a code step (n8n's Webhook node has a raw body option, and n8n and Activepieces both have code steps), check the signature there and stop the workflow if it fails. The Webhooks page has ready-made checks in JavaScript and Python.

Where your tool can't do that:

  • Keep the URL secret. Treat it like a password. Don't paste it in tickets or chat.
  • Confirm by reading back. Before acting, look the item up with the API: fetch the call from /calls/ plus its id, or the contact from /contacts/ plus its id. A fake id gets a 404, so your workflow can stop there.
  • Replace a leaked URL. Make a new webhook URL in your tool, add it in Dialstitch, and Remove the old endpoint.

Retries and duplicates

  • Your tool has 10 seconds to answer with any 2xx status. n8n, Activepieces and Make all answer straight away by default, so leave that as it is and do the work afterwards.
  • A failed delivery is retried after 2, 4, 8, 16 and 32 minutes, six attempts in all. Redirects count as failures, so use the final URL.
  • After 5 deliveries in a row use up every retry, Dialstitch turns the endpoint off. Fix the problem, then select Turn on on the Webhooks tab. Each endpoint there lists its latest deliveries with the status, attempts and response code.
  • Events can arrive twice or out of order. The delivery id stays the same on every retry, so skip any id you've already handled. Use occurred_at to put events in order.
  • Over the API limit you get a 429 with a Retry-After header. Turn on retries in your HTTP step.

Recipes

Missed call to a Slack or Teams message

Trigger: call.missed.

Actions:

  1. Post to your team channel with the Slack or Microsoft Teams step in your tool.
  2. Build the message from call.from, contact.name and contact.company (fall back to "Unknown caller" when contact is empty) and call.started_at.
  3. Add a link to the call: https://dialstitch.com/app/calls/ followed by call.id.

Add voicemail.received to the same webhook if you want voicemails in the channel too. Use a second branch so the message says "left a voicemail" instead.

Call recap to a Google Sheet row or Notion page

Trigger: call.recapped. It fires once the AI transcript and summary are ready, usually shortly after the call ends.

Actions:

  1. Optional: fetch /calls/ plus call.id plus /summary (calls:read) to get the action items as well as the summary.
  2. Add a row to Google Sheets, or a page to a Notion database, with the date (call.started_at), direction, remote_number, contact name and company, who handled it (user.name), duration_seconds and summary.

For the full text, fetch /calls/ plus the id plus /transcript.

Meeting booked to a CRM task

Trigger: meeting.booked.

Actions:

  1. Find the person in your CRM by guest_email, or by remote_number when the meeting was booked by the AI receptionist on a call (source is ai).
  2. Create a task for the meeting: meeting.title as the subject, starts_at as the due time, and caller_name, time_label and time_zone in the description.
  3. Store meeting.id on the task.

Then add meeting.cancelled to the webhook and branch on the event name: find the task by meeting.id and close it. Check cancelled_by to see whether the caller or your team cancelled.

HubSpot, Pipedrive and Close already log calls and texts through CRM integrations. This recipe adds the meeting itself, or works with a CRM we don't connect to.

New form lead to speed to lead

Trigger: your form tool's own trigger in n8n, Activepieces or Make, such as a new Typeform response or a new Webflow form submission.

Actions:

  1. Filter or clean up as you like: skip test entries, drop spam, look the person up in your CRM.
  2. POST to https://dialstitch.com/api/v1/leads with a key that has leads:write. Send JSON with phone (the only required field), plus name, email, company, source (such as "Pricing form") and message.

With speed to lead turned on, the first call starts within seconds, by a rep or the AI SDR. A new lead returns 202 with calling set to true. The same number again within the window returns 200 with duplicate set to true, and nobody is called twice, so retries are safe. Your team can take up to 60 new leads a minute and 2,000 a day.

If you don't need the filtering step, skip the automation tool. Admin, then Speed to Lead, gives you a form webhook URL that most form tools can post to directly, with no API key. See Speed to lead and the Leads API.

Inbound text to a helpdesk ticket

Trigger: sms.received.

Actions:

  1. Search your helpdesk for an open ticket tagged with message.conversation_id.
  2. If there is one, add message.body as a comment. If not, create a ticket from message.from, with contact.name as the requester when there is one, the body as the description, and the conversation id as a tag or custom field.

Keying on the conversation id keeps a back-and-forth in one ticket. Your team still replies from the Inbox. If a workflow sends texts with POST /messages (messages:write), add an Idempotency-Key header so a retried step can't text someone twice.

At-risk customer to an email for their account manager

Trigger: contact.at_risk. It fires once each time a contact's account health score drops into at risk. See Account health.

Actions:

  1. Send an email to user.email, the contact's owner. When user is empty, send it to a shared customer success inbox instead.
  2. Put contact.name, contact.company and health.score in the subject, and health.reasons as a list in the body, with a link to the latest call (https://dialstitch.com/app/calls/ followed by call.id) when there is one.
  3. Optional: POST to /contacts/ plus contact.id plus /notes (contacts:write) with a short note, such as "Flagged at risk, emailed Priya", so the team sees it on the contact's page.

Use Dialstitch's own workflows when they're enough

Dialstitch's own Workflows start on most of the same events and can create tasks, send texts and schedule callbacks without an outside tool. Reach for n8n, Activepieces or Make when the action happens in another app.

Checklist

  • Check your team is on Pro or Contact Centre.
  • Create an API key with only the scopes you need, and copy it.
  • Add a webhook with the events for this workflow, and save the whsec_ secret.
  • Select Send test event and see it arrive in your tool.
  • Check the signature in a code step, or keep the URL secret and read items back through the API.
  • Skip delivery ids you've already handled.
  • In n8n, switch the Dialstitch webhook to the production URL before you go live.

Try Dialstitch

Calls, texts and AI notes for your whole team, set up in minutes.

A card is required. No annual contract. Cancel anytime.