שיחות שהתחילו
0
| שם | שלב | Handoff | הודעות | נקבעה פגישה | הייתה פגישה | עודכן |
|---|
accounts/jessel.response_mode.async בערוץ השיחה.
https://www.googleapis.com/auth/calendar.primary או מזהה יומן ספציפי.POST /api/chat.x-api-key ב־Headers בכל קריאה חיצונית.contact_id קבוע לאותו ליד כדי לשמור רצף שיחה.message_text או image_url. אחד מהם חובה.response_mode: "async" אם רוצים שהמערכת תשלח תשובה החוצה דרך Send API.x-api-key.contact_id חדש לכל הודעה של אותו ליד.async בלי להגדיר הודעות יוצאות בטאב ההגדרות.POST.https://your-domain.com/api/chat.Content-Type: application/json וגם x-api-key: recai_xxxxx.contact_id ו־message_text. מומלץ לשלוח גם שם, אימייל וערוץ.POST https://your-domain.com/api/chat
Headers:
Content-Type: application/json
x-api-key: recai_xxxxx
Body:
{
"contact_id": "{{contact.id}}",
"message_text": "{{last_text_input}}",
"name": "{{name}}",
"email": "{{email}}",
"channel": "instagram",
"response_mode": "async"
}
x-api-key. מחזיר תשובה ב־sync או ack ב־async.x-api-key. Body: { "name": "..." }.x-api-key.contact_id כדי שהבוט יפסיק לענות לליד. Body: { "contact_id": "..." }.contact_id. Body: { "contact_id": "..." }.{ "limit": 50, "dry_run": false }.curl -X POST https://your-domain.com/api/chat \
-H "Content-Type: application/json" \
-H "x-api-key: recai_xxxxx" \
-d '{
"contact_id": "lead_123",
"message_text": "Hi, I want details",
"name": "Maria Santos",
"channel": "instagram",
"response_mode": "sync"
}'
{
"contact_id": "required, stable per lead",
"message_id": "optional",
"message_text": "required if no image_url",
"image_url": "required if no message_text",
"channel": "messenger | instagram | whatsapp",
"name": "optional",
"first_name": "optional",
"last_name": "optional",
"email": "optional",
"language": "en",
"response_mode": "sync | async"
}