Skip to content

Demo Part 1 Queue to AI

Andrey Egorov edited this page May 18, 2026 · 2 revisions

This part stays entirely inside the queue/offline line.

Steps

Step Import Completes
1 Part 1 / Step 1 queue placement, hold loop, direct agent attempt, plain offline announcement
2 Part 1 / Step 2 the same queue line, but with offline upgraded to an immediate AI handoff

Why This Works

Step 1:

  • it isolates the queue lifecycle without callback, tools, recording, or extension-menu complexity
  • wait_music_loop keeps the hold loop alive on timeout and stops cleanly on call_queue_removed
  • wait_agent is purely dial-scoped, so queue still owns caller cleanup

Step 2:

  • it reuses the same basic queue behavior and changes only the offline branch
  • dial_ai is Immediate, so no separate agent-attachment stage is needed yet
  • the difference is easy to reason about because queue logic stays stable and only offline handling changes

Clone this wiki locally