Անցնել բովանդակությանը

Տոներին բաց մի թողեք հաղորդագրությունները․ էջերի անվճար վերամիացում

Ընտրել պլան

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

Make

Make

Make scenarios with aichat.md leads and conversations: Custom webhook + the HTTP module.

New lead → any app

  1. Create a scenario with Webhooks → Custom webhook, click Add and copy the URL (https://hook.eu2.make.com/…).
  2. In aichat.md, Settings → Developers → Add webhook: paste the URL, tick New lead.
  3. Click Run once in Make, then Send test in aichat.md: Make learns the event structure.
  4. Add a Router after the webhook to handle several events (filter on type), then the modules you want: Google Sheets, Pipedrive, HubSpot, Telegram, Gmail.

API calls from Make

Module HTTP → Make a request: URL https://aichat.md/api/public/v1/..., header Authorization: Bearer aik_live_… (keep the key in a connection or variable, not in plain text), Parse response: Yes. For example PATCH /leads/{id} with {"status": "won"} when the deal is signed in your CRM.

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"}}'

Good practice

  • Set Idempotency-Key on POSTs Make may retry (e.g. sending a message).
  • If the scenario is down, events are retried for ~2 days; after a restart you can also catch up with GET /events.
Nextn8n