Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

How to Orchestrate Multi-Call Conversations with an LLM and Twilio Conversation Memory with PHP

Blog post from Twilio

Post Details
Company
Date Published
Author
Amanda Lange, Matthew Setter
Word Count
3,531
Company Posts That Month
52
Language
English
Hacker News Points
-
Post removed?
No
Summary

Published September 11, 2026, this tutorial explains how to build a PHP voice agent that preserves caller context across separate Twilio phone calls using Twilio Conversation Memory, OpenAI, Open Swoole, and Conversation Relay. It walks through creating a PHP project, installing dependencies, configuring a Twilio Memory Store and API credentials, and implementing services that retrieve a caller profile by phone number, recall prior observations and summaries, and add that information to an OpenAI system prompt. The application uses a WebSocket server to receive transcribed caller prompts, stream GPT-4o-mini responses back to Twilio, retain in-call message history, and account for interruptions by removing incomplete assistant messages. It concludes with instructions for exposing the local webhook through ngrok, configuring a Twilio phone number, and testing whether the agent remembers auto-repair details during a second call from the same number, while noting that Conversation Memory is not intended for sensitive information.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 3 6,012 1,158 239 +15%
AI Agents 1 5,565 1,404 270 -7%
Secrets Management 1 2,042 500 137 -11%
Serverless 1 1,220 277 100 +43%
Voice AI 1 3,407 304 50 +20%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.