THRSP1120 · Theater
Connect Foundry to real-time communications with omnichannel AI agents
Speakers: Rachel Baskin, Ryan Rouleau
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
A 14-minute theater session from Microsoft and Twilio on connecting agents built in Microsoft Foundry to Twilio voice, SMS, WhatsApp, RCS and chat channels. It explains when to use Foundry Voice Agents (voice-only speech-to-speech) and when to use Twilio Agent Connect (omnichannel, cross-channel memory, human handoff). The architecture combines Twilio Conversation Orchestrator, conversation memory and Conversation Relay with Azure API Management and an Agent Framework agent running in Foundry hosted agents. A live airline demo shows an SMS request and a follow-up voice call handled in one agent session with shared memory. The open-source TAC Microsoft integration is stated to be GA, with a pip package and a one-command deployment.
Best for: Developers and architects building customer-service agents in Microsoft Foundry who need omnichannel voice and messaging with shared context via Twilio.
New material starts at 02:53. The first three minutes cover the adoption problem and the Foundry–Twilio division of roles; at 02:53 the Twilio Agent Connect Foundry package and the decision guidance against Foundry Voice Agents begin.
Where to skip: Skip to 02:53 for the TAC vs Foundry Voice Agents choice; the architecture at 04:51–07:51, the SMS-to-voice demo at 07:51 and the build/deploy walkthrough at 11:07 are the core; the intro and the closing from 13:03 can be skipped.
Chapters (7)
- 00:00 Recap Depth 100 · Novelty 1/3
Why AI agents stall in production and the Foundry–Twilio division of roles
Rachel Baskin introduces the session and states that AI spend is up 50% year over year while most customers have not put agents into production, or only for low-risk use cases such as appointment scheduling. She explains the partnership: Microsoft Foundry provides agent building (hosted agents, Voice Live, over 1000 models, evals, guardrails, Agent Framework), while Twilio provides channels (voice, SMS, WhatsApp, RCS, chat). Twilio's Conversation Orchestrator and memory product keep one continuous conversation with context across channels, and human handoff (for example to Twilio Flex) covers cases where the agent should not continue.
- 02:53 New Depth 200 · Novelty 2/3
Twilio Agent Connect vs Foundry Voice Agents: choosing by conversation type
The speaker introduces Twilio Agent Connect (TAC) with a dedicated Foundry package that connects Foundry-built agents to the Twilio platform. Foundry Voice Agents are recommended for voice-only, speech-to-speech experiences where Foundry owns tracing, evals and intelligence, such as an in-app voice assistant or a voice-only phone agent (with Twilio carrying the call). TAC is recommended for omnichannel scenarios, such as a customer who texts first and then calls, cross-channel memory, a single thread, human handoff or workflow orchestration.
- 04:51 Deep dive Depth 300 · Novelty 2/3
How the TAC–Foundry integration works: Agent Framework Connector, memory, built-in tools
TAC includes an Agent Framework Connector that orchestrates between Foundry events and Twilio events and is deployed in Azure hosted agents, so no separate compute is needed. The loop: the customer contacts Twilio, Twilio identifies the customer, hands off to the Foundry hosted agent (LLM and tools) and delivers the response back on the channel. Conversation memory carries context from prior conversations across channels, and Twilio is working to add website activity data to that context. Built-in tools include memory, knowledge and handoff to Twilio Studio flows.
- 06:26 Deep dive Depth 300 · Novelty 2/3
Demo architecture: Conversation Orchestrator, Conversation Relay, APIM and hosted agent
Ryan Rouleau outlines the demo: a customer of the fictional Owl Airlines texts and then calls the airline. Twilio Conversation Orchestrator ties the text and call into one conversation, conversation memory supplies past observations about the customer, and Twilio Conversation Relay handles speech-to-text and text-to-speech so one agent serves messaging and voice. An Azure API Management instance verifies requests from Twilio and passes them securely to the agent, which is built with Microsoft Agent Framework using the TAC integration and runs in Foundry hosted agents; per the slide, one deployment command provisions Foundry, a model, Container Registry, APIM and Key Vault.
- 07:51 Demo Depth 200 · Novelty 2/3
Live demo: SMS then voice call continue one agent session with shared memory
Ryan texts Owl Airlines to add a checked bag; the text creates a new Twilio conversation and an isolated agent session in Foundry hosted agents, whose live log stream shows conversation memory retrieving his window-seat preference and flight lookup by phone number. He confirms the $45 fee and the agent calls the add-checked-bag tool and sends an SMS confirmation. He then calls the airline by voice and asks for better seats; the agent proactively offers window seat 23A from memory, changes the seat and mentions the bag added by text, because Twilio merged text and call into the same conversation and agent session.
- 11:07 Demo Depth 300 · Novelty 2/3
Building it: open-source TAC package, one-line agent registration and make deploy
Ryan states the Twilio Agent Connect–Microsoft integration is open source and generally available, shown in the twilio-agent-connect-microsoft GitHub repo with a pip-installable Python package, examples and production-ready reference deployments. The starter agent (agent.py) is built with Microsoft Agent Framework; the demo only changed the system prompt and added tools, and connecting to all Twilio messaging and voice channels is mostly boilerplate with one line to register the agent. A single make deploy command guides the user or a coding agent through settings such as the Twilio API key (stored in Azure), deploys the Azure resources and agent, and points Twilio to the new agent.
- 13:03 Closing Depth 100 · Novelty 0/3
Wrap-up: TAC works with any LLM, repo QR code and booth for questions
Ryan summarises that Twilio Agent Connect works with any LLM or agent, while the Foundry integration makes connecting Foundry agents to the full Twilio platform native. The closing slide shows the pip install command, the GitHub repo and a QR code. The speakers point to booth 5223R and offer to take questions.
Announcements (4)
-
Twilio Agent Connect Foundry package
A Foundry-specific package of Twilio Agent Connect that connects Foundry-built agents to the Twilio communications platform.
Speaker’s quote (at 02:53)
„we've launched something called Twilio Agent Connect with a specific Foundry package that connects Foundry-built agents to the Twilio platform“
-
Agent Framework Connector in Twilio Agent Connect
A connector in TAC that orchestrates between Foundry events and Twilio events and runs inside Azure hosted agents without separate compute.
Speaker’s quote (at 04:51)
„we've built something within TAC called Agent Framework Connector, which connects and basically does a lot of the orchestration between the events in Foundry and the actual Twilio events“
-
Website activity context in Twilio conversation memory
Planned enhancement so conversation memory includes recent website activity, letting the agent anticipate why a customer is calling.
Speaker’s quote (at 05:53)
„We're working to enhance that to include things like, if I just was on your website, how can I get that data in“
-
Twilio Agent Connect Microsoft integration (open source)
Open-source repo and pip-installable Python package connecting Microsoft Agent Framework agents in Foundry to all Twilio messaging and voice channels.
open source
Speaker’s quote (at 11:07)
„all of this is open source and generally available today. This is our open source repo for our Twilio Agent Connect and Microsoft partnership and integration“
Demos (2)
-
An airline customer service agent handles an SMS request and a follow-up voice call in a single conversation with shared memory and context.
Steps (6)
- Send an SMS to the airline's Twilio number asking to add a bag to the flight.
- Observe that a new Twilio conversation and a new isolated session appear in the Foundry agent's Traces/sessions list.
- Open the session and view the Log stream, filtered to custom log entries, to see conversation creation, memory retrieval (window-seat preference) and flight lookup by phone number.
- Reply 'yes' to confirm the $45 checked-bag fee and observe the agent calling the add-checked-bag tool and sending an SMS confirmation.
- Call the same airline number by voice and ask for better seats on the upcoming flight.
- Accept the agent's proactive offer of window seat 23A and confirm the agent also references the bag added earlier by SMS.
Prerequisites: A Twilio phone number with messaging and voice, Twilio Conversation Orchestrator, conversation memory and Conversation Relay, an agent built with Microsoft Agent Framework and the TAC integration running in Foundry hosted agents behind Azure API Management, and custom tools for adding a bag and changing seats.
-
A developer adds Twilio omnichannel connectivity to their own Agent Framework agent and deploys it to Foundry hosted agents.
Steps (6)
- Open the twilio-agent-connect-microsoft GitHub repo and pip install the Python package.
- Start from the provided starter agent (agent.py) built with Microsoft Agent Framework.
- Change the system prompt and add your own tools.
- Keep the boilerplate code that connects the agent to Twilio messaging and voice channels and register the agent with the single registration line.
- Test the agent locally.
- Run make deploy, enter settings such as the Twilio API key (saved in Azure), and let it deploy the Azure resources and agent and point Twilio to the new agent.
Prerequisites: A Twilio account and API key, an Azure subscription for Foundry hosted agents; per the slide the deploy provisions Foundry, a model, Container Registry, APIM and Key Vault.