Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Answer Vapi order-status calls and log callbacks in Data Tables

Serves order-status lookups to Vapi voice calls from a Data Table and stores callback requests once per call and tool call ID, so replays return the existing record.

What it does

## 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.

The steps

  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 steps in total.

Similar automations