跳到主要内容

假期不漏消息:免费重新连接

选择套餐

The API docs are available in English, Romanian and Russian. This is the English version.

Zapier

Zapier

Every new lead from your AI agent lands in Google Sheets, your CRM or your inbox — no code.

New lead → Google Sheets

  1. In Zapier, create a Zap with the Webhooks by Zapier → Catch Hook trigger and copy its URL (https://hooks.zapier.com/hooks/catch/…).
  2. In aichat.md, Settings → Developers → Add webhook: paste the URL and tick New lead (lead.created).
  3. Click Send test, then Test trigger in Zapier: you see data.object.name, data.object.phone, data.object.summary…
  4. Add the Google Sheets → Create Spreadsheet Row action and map the columns to the lead fields.
  5. Turn the Zap on. Every lead your agent captures shows up in the sheet within seconds.

Catch Hook does not verify the signature. For sensitive data use polling below or your own server that verifies Aichat-Signature.

Alternative: polling with an API key

Trigger Webhooks by Zapier → Retrieve Poll: URL https://aichat.md/api/public/v1/events?type=lead.created, header Authorization: Bearer aik_live_…, deduplication key id, path to list data. Zapier checks every few minutes and passes on only new events.

CRM status back to aichat.md

Action Webhooks by Zapier → Custom Request, method PATCH, URL https://aichat.md/api/public/v1/leads/{{lead_id}}, headers Authorization and Content-Type: application/json:

curl -X PATCH https://aichat.md/api/public/v1/leads/lead_MTEy \
  -H "Authorization: Bearer $AICHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "qualified", "external_id": "crm-4821", "metadata": {"owner": "Vlad"}}'
NextMake