# Conversation Relay

Published articles for Conversation Relay.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to Connect Your Twilio Agent to External APIs with PHP

DevFeed: [How to Connect Your Twilio Agent to External APIs with PHP](<https://devfeed.tech/articles/how-to-connect-your-twilio-agent-to-external-apis-with-php-31439.md>)

Original publisher: [Read original article](<https://www.twilio.com/en-us/blog/developers/tutorials/product/how-to-connect-twilio-agent-to-external-apis-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: [PHP](<https://devfeed.tech/topics/php.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [API](<https://devfeed.tech/topics/api.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [voice ai](<https://devfeed.tech/topics/voice-ai.md>), [.env](<https://devfeed.tech/topics/dotenv.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>), [Composer](<https://devfeed.tech/topics/composer.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [apis](<https://devfeed.tech/tags/apis.md>), [build](<https://devfeed.tech/tags/build.md>), [conversation-relay](<https://devfeed.tech/tags/conversation-relay.md>), [developer-insights](<https://devfeed.tech/tags/developer-insights.md>), [external](<https://devfeed.tech/tags/external.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [openai](<https://devfeed.tech/tags/openai.md>), [openswoole](<https://devfeed.tech/tags/openswoole.md>), [php](<https://devfeed.tech/tags/php.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [voice](<https://devfeed.tech/tags/voice.md>)

### AI overview

This tutorial shows how to use PHP and OpenSwoole with Twilio Conversation Relay to build a voice agent that uses LLM tool calling to retrieve live data from an external REST API. It covers project setup, required packages, and storing an OpenAI API key in a .env file.

### Source excerpt

In this tutorial, you will use PHP and OpenSwoole to build a voice agent using Twilio Conversation Relay.