Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / ИИ-агенты и ассистенты

ИИ-агенты и ассистенты

Отвечать на звонки Vapi о статусе заказа и записывать обратные вызовы в Data Tables

Отвечает на запросы о статусе заказа от голосовых звонков Vapi из Data Table и сохраняет запросы на обратный вызов один раз для каждого звонка и ID вызова инструмента, поэтому повторные запросы возвращают уже существующую запись.

Что делает

## From synthetic demo to your support queue Populate the orders table with your own orderId, email, status, carrier, trackingNumber and estimatedDelivery columns. Normalize email to lowercase. Use one row per orderId/email pair. Keep table names unique in this n8n project; select your tables in the Data Table nodes when adapting names. Run the seed branch against dedicated demo tables. ## Replay behavior Callback requestKey = JSON.stringify([message.call.id, toolCall.id]). A sequential replay returns the existing row and preserves its status. Changed callback details for that key produce an explicit error. A new toolCallId creates a new request. Data Table upsert uses a transaction with update/insert. Concurrent first writes require a separately verified deployment contract; PostgreSQL UNIQUE(requestKey) is the integration path for atomic business uniqueness. ## Operational scope The supplied workflow stores an actionable callback queue for a support operator. Customer communications, store synchronization and voice-agent behavior follow your connected systems. Keep the order response fields concise and set Vapi tool timeout to suit your tested n8n endpoint latency.

Шаги

  1. Set up demo tables
  2. Create demo orders
  3. Create callback queue
  4. Two synthetic orders
  5. Seed demo orders
  6. Setup ready
  7. Vapi webhook
  8. Split tool calls
  9. Each tool call
  10. Validate current tool
  11. Valid arguments?
  12. Argument error result
  13. Find matching order
  14. Resolve order

Всего шагов: 24.

Похожие автоматизации