Make
Make scenarios with aichat.md leads and conversations: Custom webhook + the HTTP module.
New lead → any app
- Create a scenario with Webhooks → Custom webhook, click Add and copy the URL (
https://hook.eu2.make.com/…). - In aichat.md, Settings → Developers → Add webhook: paste the URL, tick New lead.
- Click Run once in Make, then Send test in aichat.md: Make learns the event structure.
- 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-KeyonPOSTs 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.