This repository contains follow-along steps and resources for the "Twilio Forge: Virtual Vanguard" workshop, the kickoff event for the Agent Activated series. Build a production-grade Voice AI agent for Signal City Transit using Twilio ConversationRelay and layer on observability with Conversational Intelligence.
The RUNBOOK.md provides a step-by-step guide to:
- Setting up Twilio ConversationRelay with a phone number webhook
- Handling real-time WebSocket messages between caller and server
- Integrating OpenAI GPT-5 mini with function calling (streaming is pre-built)
- Building a voice agent that answers route questions, takes lost item reports, and escalates to humans
- Adding Conversational Intelligence with pre-built and custom operators
- Receiving post-call analysis via webhook
Read the RUNBOOK.md for detailed instructions and workshop steps.
Tip
The workshop uses a scaffolded Fastify application. You'll implement the core logic in build/routes/ and build/services/. If you get stuck, check the ./final/ directory for the complete implementation.
Note
This workshop uses OpenAI, but ConversationRelay is LLM-agnostic. You can swap in any provider — only llm.js needs to change.
This repository is structured for hands-on learning:
./build/directory: Scaffolded files with TODOs where you'll implement the voice agent logic./final/directory: Complete working implementation for reference./assets/directory: Shared data files (Signal City Transit routes and schedules)
Tip
This project uses npm workspaces for easier dependency management. Running npm install in the root directory will automatically install dependencies for both the build/ and final/ directories.
build/routes/twiml.js- Return ConversationRelay TwiMLbuild/routes/websocket.js- Handle WebSocket messages from ConversationRelaybuild/services/llm.js- OpenAI integration (streaming pre-built; you add system prompt, tools, and tool execution)build/routes/intelligence.js- Conversational Intelligence webhook handlerbuild/server.js- Pre-configured Fastify server (no edits needed)build/services/transit-data.js- Transit data query helpers (no edits needed)
☮️