n8n and AI Call Studio
An n8n workflow can ring leads from any source and handle every call's outcome, with the signature checked so only real deliveries get through.
Via Zapier, Make, Pabbly or n8n Uses the platform's own webhook and HTTP blocks. There is no listed AI Call Studio app yet.
What you enter
- n8n's Webhook, Code and HTTP Request nodes, on n8n cloud or your own server.
- Our API key with calls:write, in the request's Authorization header.
What syncs, and which way?
From n8n to AI Call Studio
- n8n receives our webhook events: call.completed, lead.captured and any other you pick on the Developers page.
From AI Call Studio to n8n
- n8n places a call, adds a contact or sends a message through our API, from any trigger n8n has.
What does not sync yet
- There is no AI Call Studio community node for n8n yet: you use its own Webhook and HTTP Request nodes, set up as below.
The recipe
An n8n workflow can ring leads from any source and handle every call's outcome, with the signature checked so only real deliveries get through.
Results out: start a workflow with a Webhook node (method POST), turn on its Raw Body option, and copy the production URL.
On the Webhooks tab here, add a webhook with that URL and pick events such as call.completed and lead.captured.
Right after the Webhook node, add a Code node that checks the X-Aicallstudio-Signature header against your webhook secret and stops anything that fails. On a self-hosted n8n, allow the built-in crypto module for Code nodes.
Calls in: add an HTTP Request node set up as in the sample, with your key in the Authorization header.
Build the Idempotency-Key from the triggering item's id, so a retried execution never rings twice.
POST /api/calls/dial
// Code node, "Run Once for All Items", right after the Webhook node (Raw Body on)
const crypto = require("crypto");
const item = $input.first();
const raw = Buffer.from(item.binary.data.data, "base64");
const want = "sha256=" + crypto.createHmac("sha256", $env.AICALLSTUDIO_WEBHOOK_SECRET).update(raw).digest("hex");
const got = item.json.headers["x-aicallstudio-signature"] || "";
if (got.length !== want.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want))) {
throw new Error("Bad signature");
}
return [{ json: JSON.parse(raw.toString("utf8")) }];
// HTTP Request node, pasted into the canvas as JSON
const httpRequestNode = {
"name": "Place the call",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"parameters": {
"method": "POST",
"url": "https://aicallstudio.com/api/calls/dial",
"sendHeaders": true,
"headerParameters": { "parameters": [
{ "name": "Authorization", "value": "Bearer mtc_YOUR_KEY" },
{ "name": "Idempotency-Key", "value": "={{ 'n8n-' + $json.id }}" }
] },
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ phone: $json.phone, agent_id: 'AGENT_ID', name: $json.name }) }}"
}
};Costs and what to watch
- Every call the API places is a real call to a real person, billed from your wallet like any other call, at your plan's rates. Try it on your own number first.
- A scenario that replays or retries can ring someone twice unless the Idempotency-Key comes from the triggering record's id.
Read next
Zapier
Any app Zapier reaches can start an AI call, and every call's outcome can flow into any app Zapier writes to, with Zapier's own webhook blocks.
Read more →Make
A Make scenario can ring a lead the moment it appears, and route every call's outcome to the tools your team uses, with Make's webhook and HTTP modules.
Read more →Developers
The API, signed webhooks, the quickstart and recipes with code.
Read more →