Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.contactswing.ai/llms.txt

Use this file to discover all available pages before exploring further.

This comprehensive guide details how to configure your Twilio account to seamlessly integrate voice calls and SMS messaging with your application. Follow the steps below for a successful setup.

🎥 Video walkthrough

Go to Twilio Console

Voice call integration

To enable inbound voice calls through Twilio, you’ll need to configure a webhook URL. Webhook URL for calls:
https://prod-contactswing-calls-962560522883.us-central1.run.app/inbound_call?assistant_id=ENTER_YOUR_ASSISTANT_ID_HERE
  • Enter your assistant key in the Twilio Console under Voice configuration.
  • Go to the Phone Numbers section, select your number, and set the Voice webhook to the above URL (replace with your assistant ID).

SMS integration

Webhook URL for SMS:
https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/receive/sms?workspace_key=YOUR_AUTH_KEY_HERE&assistant_id=ENTER_YOUR_ASSISTANT_ID_HERE
  • Enter your assistant key in the Twilio Console under Messaging configuration.
  • Go to the Phone Numbers section, select your number, and set the Messaging webhook to the above URL (replace with your auth key and assistant ID).

Final steps

  • Make sure both Voice and Messaging webhooks are correctly linked to your assistant.
  • You can manage these configurations directly in the Twilio Console.

Success! 🎉

Your Twilio account is now set up to handle both voice calls and SMS messages with your assistant.