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

DevFeed: [How to Orchestrate Multi-Call Conversations with an LLM and Twilio Conversation Memory with PHP](<https://devfeed.tech/articles/how-to-orchestrate-multi-call-conversations-with-an-llm-and-twilio-conversation-memory-with-php-26246.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/developers/tutorials/product/orchestrate-multi-call-conversations-with-llm-twilio-conversation-memory-php>)

Author: Amanda Lange, Matthew Setter

Published: 2026-09-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Twilio Blog](<https://devfeed.tech/sources/twilio-blog.md>)

Topics: [Composer](<https://devfeed.tech/topics/composer.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [context](<https://devfeed.tech/topics/context.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Orchestration](<https://devfeed.tech/topics/orchestration.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [code](<https://devfeed.tech/tags/code.md>), [context](<https://devfeed.tech/tags/context.md>), [conversation-memory](<https://devfeed.tech/tags/conversation-memory.md>), [developer-insights](<https://devfeed.tech/tags/developer-insights.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [llm](<https://devfeed.tech/tags/llm.md>), [logging](<https://devfeed.tech/tags/logging.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [orchestration](<https://devfeed.tech/tags/orchestration.md>), [php](<https://devfeed.tech/tags/php.md>), [phpstorm](<https://devfeed.tech/tags/phpstorm.md>), [voice-api](<https://devfeed.tech/tags/voice-api.md>)

## AI overview

This tutorial shows how to build a PHP service with Open Swoole that uses Twilio Conversation Memory to preserve caller context, preferences, and action history across separate inbound calls. It covers the required accounts, tools, environment variables, Composer setup, OpenAI integration, logging, and Memory Store configuration.

## Source excerpt

In this tutorial you'll make a PHP service using Open Swoole that retains caller context, preferences and action history across multiple separate inbound calls.