Stay organized with collections
Save and categorize content based on your preferences.
You can integrate Twilio's SIPREC configuration with Google Cloud's Agent Assist. This integration allows Agent Assist to analyze Twilio's audio data.
The architecture
Google Cloud CCAI acts as the session initiation protocol (SIP) recording server (SRS) and Twilio is the SIP recording client (SRC). Twilio has edge locations in Oregon and Virginia, and the Oregon location has Edge servers with a complete, fully qualified domain name that has been configured to communicate with CCAI. Using Twilio's generic SIP recording (SIPREC) connector, you can transmit traffic from the Oregon location to CCAI.
The following image illustrates how the Twilio SIPREC connector transmits voice data from the Twilio telephony SRC to the Google Cloud CCAI SRS.
As part of CCAI, Agent Assist can then send transcripts of that voice data with suggestions back to the Twilio agent desktop using Cloud Run, Pub/Sub, and Memorystore for Redis.
Configure SRS details at Twilio SIPREC connector
Follow these steps to access a Twilio SIPREC connector:
For the SRS, use the following connection string and replace the phone number with the phone associated with your conversation profile. The phone number should be formatted as +1XXXXXXXXXX.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eTwilio's SIPREC configuration can be integrated with Google Cloud's Agent Assist, enabling Agent Assist to analyze audio data from Twilio.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud CCAI acts as the SIP recording server (SRS), while Twilio functions as the SIP recording client (SRC), transmitting traffic from its Oregon location to CCAI.\u003c/p\u003e\n"],["\u003cp\u003eVoice data from Twilio is transmitted to Google Cloud CCAI SRS through the Twilio SIPREC connector.\u003c/p\u003e\n"],["\u003cp\u003eThe SRS details, including a connection string with a specific phone number, must be configured within the Twilio SIPREC connector settings.\u003c/p\u003e\n"],["\u003cp\u003eTwilio Studio's Fork Stream widget is used to configure the SIPREC integration, directing incoming call audio to the defined connector.\u003c/p\u003e\n"]]],[],null,["# Twilio SIPREC integration\n\nYou can integrate Twilio's SIPREC configuration with Google Cloud's Agent Assist. This integration allows Agent Assist to analyze Twilio's audio data.\n\nThe architecture\n----------------\n\nGoogle Cloud CCAI acts as the [session initiation protocol (SIP)](/agent-assist/docs/siprec) recording server (SRS) and Twilio is the SIP recording client (SRC). Twilio has edge locations in Oregon and Virginia, and the Oregon location has Edge servers with a complete, fully qualified domain name that has been configured to communicate with CCAI. Using Twilio's generic [SIP recording (SIPREC)](/agent-assist/docs/siprec) connector, you can transmit traffic from the Oregon location to CCAI.\n\nThe following image illustrates how the Twilio SIPREC connector transmits voice data from the Twilio telephony SRC to the Google Cloud CCAI SRS.\n\nAs part of CCAI, Agent Assist can then send transcripts of that voice data with suggestions back to the Twilio agent desktop using Cloud Run, Pub/Sub, and Memorystore for Redis.\n\nConfigure SRS details at Twilio SIPREC connector\n------------------------------------------------\n\nFollow these steps to access a Twilio SIPREC connector:\n\n1. Visit the Twilio [Stream Connectors Console page](https://www.twilio.com/console/voice/stream-connectors).\n2. Select **SIPREC Connector**.\n3. Give your connector a unique name.\n\nFor the SRS, use the following connection string and replace the phone number with the phone associated with your conversation profile. The phone number should be formatted as +1XXXXXXXXXX. \n\n```\nsip:\u003c\u003center_phone_number_here\u003e\u003e@216.239.36.145:5672;transport=tls;secure=true;edge=umatilla\n```\n\nFor more details, see [Twilio's SIPREC documentation](https://www.twilio.com/docs/voice/api/siprec).\n\nConfigure Twilio Studio\n-----------------------\n\nFollow these steps to configure Twilio Studio for SIPREC integration:\n\n1. Navigate to Twilio Studio and select the flow associated with the phone that your customers use to dial your contact center.\n2. Add a new plugin from the widget library called Fork Stream.\n3. Connect the incoming call trigger to the Fork Stream widget and the next connection to the rest of your flow.\n4. Configure the widget with the following information:\n\n - **Widget Name**: A unique name for your widget\n - **Stream Action**: Start\n - **Stream Name**: A unique name for your stream\n - **Stream Type**: SIPREC\n - **Connector Name**: The name of the connector you created in the previous section\n - **Tracks**: Both Tracks\n - **Stream Parameters** :\n - Key: conversation\n - Value: `projects/\u003c\u003cgcp-project-id\u003e\u003e/conversations/{trigger.call.CallSid}`\n\nFor more information, read about [Twilio's Fork Stream widget](https://www.twilio.com/docs/studio/widget-library/fork-stream)."]]