Setting up webhooks to receive incoming calls, messages and status updates for calls (for Twilio users)
Step 1: Login to your Twilio account and click on the URL to view phone numbers:!(https://assets.patientcopilot.ai/560fcc49f162914d.jpg) ## Step 2: Click on a phone number to edit the configuration!(https://assets.patientcopilot.ai/e41e06a1a6ee3502.jpg) ## Step 3: Set the Routing region to ‘US1’ if not done already.!(https://assets.patientcopilot.ai/68639563026c9b0b.jpg) ## Step 4: Under ‘Voice Configuration’ set it to:!(https://assets.patientcopilot.ai/2d12ad8ce6b231c1.jpg) - Configure with: Webhook, TwiML Bin, Function, Studio Flow, Proxy Service
- A call comes in: Webhook
- Use the following URL(https://staging.services.leadconnectorhq.com/phone-system/voice-call/inbound) https://services.leadconnectorhq.com/phone-system/voice-call/inbound
- HTTP: HTTP POST
- Primary handler fails: No changes needed
- Call status changes > URL:(https://services.leadconnectorhq.com/appengine/twilio/incoming_call_status) https://services.leadconnectorhq.com/appengine/twilio/incoming_call_status
- HTTP: HTTP POST
- Caller Name Lookup: Your choice, we recommend keeping this ‘Enabled’ to use lookup
- Click on the save configuration button ## Step 5: Under ‘Messaging Service’ set it to Routing region to ‘US1’ if not done already.!(https://assets.patientcopilot.ai/a50b2659240db799.jpg) ## Step 6: Messaging service: No input/change needed!(https://assets.patientcopilot.ai/3e65a7910ba1ed8f.jpg) - Configure with: Webhook, TwiML Bin, Function, Studio Flow, Proxy Service
- A message comes in: Webhook
- Use the following URL (https://services.leadconnectorhq.com/conversations/providers/twilio/inbound_message)[https://services.leadconnectorhq.com/appengine/twilio/incoming\_message](https://services.leadconnectorhq.com/appengine/twilio/incoming_message)(https://services.leadconnectorhq.com/appengine/twilio/incoming_message)
- HTTP: HTTP POST
- Primary handler fails: No input/change needed
- Click on the save configuration button ## If your number is connected to a Messaging Service ## 1. Click on Active numbers!(https://assets.patientcopilot.ai/842a0ca98d2f0869.png) ## 2. Click on the linked Messaging Service!(https://assets.patientcopilot.ai/7dfa96e1f607be89.png) ## 3. Click on Integration!(https://assets.patientcopilot.ai/142c663840e58878.png) ## 4. Select “Send a webhook” Make sure to use the following webhooks Request URL: https://services.leadconnectorhq.com/appengine/twilio/incoming_message Fallback URL: https://services.leadconnectorhq.com/appengine/twilio/incoming_message!(https://assets.patientcopilot.ai/9baee36a4d8ad77a.png) ## 5. Click on Save!(https://assets.patientcopilot.ai/8cc305622efaf3bc.png) * * * ## Frequently Asked Questions Currently no frequently asked questions. Submit feedback on this article to help is add questions to this section! Was this article helpful? That’s Great! Thank you for your feedback Sorry! We couldn’t be helpful Thank you for your feedback Feedback sent We appreciate your effort and will try to fix the article