Feature Availability
Vtiger Editions: One Pilot | One Growth | One Professional | One Enterprise | One AI
Twilio has updated to the new SDK Version (2.x)!
Current Customers - Pls follow the steps mentioned below to update the configuration.
Vtiger has updated the integration to support Twilio’s new SDK Version (2.x).
If you are using Twilio as a phone call gateway in Vtiger to place and receive calls, you need to update the following configurations in your Twilio account and in the Vtiger CRM instance.
Read the notes below carefully before you configure the new settings.
Note:
- Ensure you have a TwiML App ID set up. If you were using direct calls previously, you’ll need to create a new TwiML app (Document).
- For the following steps, you will navigate between Twilio and Vtiger CRM screens multiple times. Keep both the Twilio and CRM tabs open.
Follow these steps to update the configuration:
Step 1: Generate the API Key SID and API Key Secret in Twilio
- Log in to your Twilio account.
- Click on your Account. The Account Dashboard opens.
- Click the Go to API Keys section.
- Enter or select the following in the Copy Secret Key window:
- Friendly name: Enter Vtiger CRM.
- Region: United States
- Key Type: Standard
- The system will display the API Key SID and API Key Secret.
- Copy the SID and Secret to a notepad. Save these safely.
- Click the Got It! checkbox.
- Click Done.
Step 2: Update your Twilio gateway configuration in Vtiger CRM.
- Log in to Vtiger CRM.
- Click on the User Menu in the top right corner of the screen.
- Click Settings.
- Look for the Extensions section.
- Select Phone Configuration.
- Edit the already configured Twilio gateway.
- Enter or select the following information:
- Twiml App Sid: Paste the Twilio Auth SID to the Twiml App Sid field
- apiKeySid: Paste the SID that you have copied into your notepad.
- apiKeySecret: Paste the SECRET that you have copied into your notepad.
- Click Save.
After completing these steps, you will be able to continue making and receiving calls from within Vtiger CRM.
Introduction
The Phone Calls module in Vtiger lets you integrate with different service providers and lets you:
- Make and receive calls from the CRM.
- Track, manage, and log every phone call with your leads, customers, and team members—ensuring no critical conversation slips through the cracks.
- Create records for every phone call made or received.
- Integrate services such as Live Chat, email, call logging, purchase history, feedback surveying, support tickets, and many more
The Phone Calls module lets you connect to other hosted telephony services such as ViciDial, Knowlarity, Exotel, Telzio, Plivo, and Asterisk. 1.4 and 1.6 (without Vtiger Connector) and Asterisk ver. 1.8 - 11 (with Vtiger Connector).
Integration with Twilio
Integrating Twilio with Vtiger's Phone Calls module enables you to place and receive phone calls from the CRM platform. With Twilio's robust API and Vtiger's comprehensive CRM capabilities, you can streamline call management, automate follow-ups, and maintain a detailed call log.
Requirements
To integrate Twilio with Vtiger, you need to:
- Have an active Twilio account. If you do not have an account, you must sign up with Twilio and create one.
- Provide your Twilio credentials during the configuration process in Vtiger.
- Install Vtiger’s Phone Calls module.
- Integrate your Twilio phone number with the Phone Calls module in Vtiger.
Before configuring Vtiger, you have to explain the IVR flow of your phone system to the Telephony service provider (Twilio) to ensure proper setup. By integrating Twilio's telephony features into Vtiger, you can enhance customer engagement and refine your communication strategy effectively.
Benefits of integrating Twilio with Vtiger CRM
The benefits of integrating Twilio with the Phone Calls module are:
- Communicate seamlessly in real-time through voice calls, SMS, and chat directly from the CRM.
- Automate follow-ups, reminders, and notifications, ensuring timely communication.
- Automatically log calls and messages in the CRM with details, including duration, time, and notes.
- Generate metrics like call duration, missed calls, response rates, and more, which can be accessed within the CRM.
In this article, you will learn about:
- Installing the Phone Calls module
- Configuring Twilio in Vtiger CRM
- Using Twilio to make calls
- Viewing phone call records in the CRM
- Troubleshooting common issues that come with this integration
Installing Phone Calls
To use the Phone Calls module, you must first install it from the Extension Store. You can access the Extension Store only if you are an Admin user.
Follow these steps to install Phone Calls:
- Log in to the CRM account.
- Click the User Menu on the top right corner of the screen.
- Click Settings.
- Look for the Extensions section.
- Select Extension Store.
- Search for Phone Calls using the search bar.
- Click Install.
After you install the module, you can see it under Main Menu > Essentials > Conversations.
Configuring Twilio as a Client Gateway
You can configure Twilio as a Client gateway. This setup involves integrating Twilio capabilities directly into your client-side application or browser.
Note:
- To set up the gateway, log in to your Twilio account and keep both Vtiger and Twilio tabs open.
- Configuration requires you to move back and forth between Vtiger CRM and the Twilio website.
- You can configure Twilio and other gateways in Vtiger CRM only if you are an Admin user.
Step 1: Select Twilio as a Default Gateway in Vtiger CRM
Follow these steps to set up Twilio as a client gateway in Vtiger CRM:
- Log in to CRM.
- Click on the User Menu in the top right corner of the screen.
- Click Settings.
- Look for the Extensions section.
- Select Phone Configuration.
- Click +Add Gateway. The Twilio configuration page opens.
- Enter or select the following information -
- Gateway: Select Twilio from the Gateway drop-down.
- Gateway Status: Select Active from the Gateway Status drop-down. This activates the gateway for incoming and outgoing calls.
- Default Gateway: Set the gateway as the default by selecting Yes from the Default Gateway drop-down. This step is optional.
- Enter a keyword to label the gateway in the Label field.
In the following steps, you will copy the Auth ID and token from your Twilio account and paste them into Vtiger CRM.
Step 2: Copy the Auth token from your Twilio Account
- Copy the Account SID from the Twilio Dashboard to a notepad.
- Copy the Auth Token from the Twilio Dashboard to a notepad. (Click Show to display the token.). Go back to the Vtiger CRM screen.
Step 3: Past the Account SID in the Auth ID field in Vtiger CRM
- Auth ID: Paste the Twilip Auth SID to the Auth ID field
- Auth Token: Paste the Twilio Auth Token into the Auth Token field. Go back to the Twilio screen.
Step 4: Add details in the Twilio screen
- Click All Products & Services from the left sidebar in Twilio.
- Click Phone numbers.
- Select Manage.
- Click TwiML Apps. The TwiML App window opens
- Click the + icon to add Vtiger as an app. The Create TwiML App window opens.
- Enter the following information:
- Friendly Name: Add the name as Vtiger CRM. The TwiML apps/Vtiger CRM page opens.
- Copy the SID information to a notepad.
- Go to Vtiger CRM.
Step 5: Add SID information in Vtiger CRM
- Twiml App Sid field: Paste the TwiML SID number in this field.
- Copy the Client Callback URL to a notepad.
- Go to Twilio.
Step 6: Add CRM Request URL to Twilio
- Go to the TwiML apps/Vtiger CRM page.
- Voice: Paste the Request URL (from the CRM).
- Click Save.
Step 7: Configure Voice and Fax on Twilio
- Click the Menu from the left sidebar in Twilio.
- Select Phone Numbers (# icon).
- Select Manage.
- Click Active Numbers.
- Click on your Twilio number. The Voice & Fax page opens.
Step 6: Configure Voice and Fax on Twilio.
- Scroll down to Voice & Fax and select the following:
- Voice Calls under ACCEPT INCOMING.
- Webhooks, TwiML Bins, Functions, Studio, or Proxy under CONFIGURE WITH.
- Copy the Callback URL from the CRM.
- Go back to the Twilio console and paste the Callback URL in the following fields:
- A CALL COMES IN
- PRIMARY HANDLER FAILS
- CALL STATUS CHANGES
- Click Save.
- Go back to the CRM tab and choose the following for incoming calls:
- Welcome Message Type - This is an audio message that is played while a client is calling you. You can choose:
- Message - Type the message, which is transcribed into an audio message.
- URL - The audio on the URL is played as the audio message.
- Closed Message Type - This is an audio message that is played when a client calls you during your non-business hours and you are unavailable to receive calls. You can choose:
- Message - Type the message, which is transcribed into an audio message.
- URL - The audio on the URL is played as the audio message.
- Busy Message Type - This is an audio message that is played when a client calls you during your business hours, but you cannot receive calls. You can choose:
- Message - Type the message, which is transcribed into an audio message.
- URL - The audio on the URL is played as the audio message.
- No Answer Timeout (sec) - The period after which a client’s incoming call must be disconnected before you receive it. For example, 60 seconds.
- Language for IVR messages - The language in which the Welcome Message must play.
- Business Hour Name - Select the agent's business hours.
- Voicemail Email ID - When clients leave a voicemail message, it is sent to the email address you specify here.
- Voicemail Transcription - Choose None if you do not want a transcript of the voicemail. Choose Auto if you need a transcript.
- Wait Music URL - The music that must play when a client’s call is being connected.
- Recording - Choose Yes if you need a recording of the call. Otherwise, choose No.
- Recording Message - When recording is enabled, the recording message is played before the system starts recording the call.
- Ticket/Case Title - Enter the case title. Vtiger CRM does not consider this value.
- Opportunity Name - Enter the case title. Vtiger CRM does not consider this value.
- Ring Incoming calls from an unknown number - A mandatory field where you configure users who will be alerted by a ring. You can configure all users and groups for an unknown number.
- Ring Incoming calls from a known number - You can configure all users, assigned users, and groups for a known number.
- Country - The outgoing call will have the country code of the country chosen from the drop-down menu.
- When you choose a country, the calls populate that country's phone code. For example, if you select India, +91 is used to generate the calls.
- If you keep the field blank, calls can be triggered with all other providers, and the codes will auto-populate.
- If you select All, the CRM allows all types of country codes to make a call.
- If you configure the same country in multiple gateway fields, the CRM displays all the providers configured with the same country code. You can choose any of the gateways to generate a call.
- Click Save.
Tips:
- When you set up a client (Twilio or Plivo only) gateway, you can see a Dialer shortcut at the top of your CRM screen. You can directly dial a number and call from the shortcut.
- After you finish configuring, you must share your Twilio number with your customers so they can contact you.
- Admin users can restrict other users from making or receiving calls through Profiles.
Phone Call Logs
Incoming and outgoing calls are logged in the CRM and are available in the Phone Calls module (Main Menu > Essentials > Phone Calls). You can view the following details on this screen:
- Call status, customer number, which agent or rep handled the call (mentioned in Handled By and Assigned To fields), call duration, etc., call duration, etc.
- Details for each call can be seen when you open the call record, such as -
- Links to the voice recording
- Call notes
- Call transfer details
- Call direction, etc.
You can create a list of all your phone calls, such as missed calls, completed calls, etc., from the List View.
To learn how to create a list,
click here. Phone Call Status Values
Call status values define the status of the calls being handled. You can see the following call statuses in the CRM.
- Ringing: For inbound calls, before the call is routed.
- In progress: For inbound calls, after an agent or a rep picks up the call. For outbound calls, when a rep initiates a call.
- Completed: For inbound and outbound calls, after a call is completed.
- Voicemail: For inbound calls, if a call goes to voicemail.
- Hang-up: For inbound calls, if a customer hangs up the call before it is routed to a rep.
- No-answer: For an outbound call, when it is not answered and there is no voicemail.
Troubleshooting Tips
Here are some common issues users encounter while using Twilio.
Call pop-up not displaying properly
Follow these steps to resolve the issue:
- Log in to Log in to CRM.
- Click on the User Menu in the top right corner of the screen.
- Click Settings. The Settings page opens.
- Go to the Extensions section. Select Phone Configuration.
- Ensure that the TwiML App is created in the Twilio account and linked within the configuration settings. If not, create a TwiML App in Twilio and link it.
- Under Active Numbers in Twilio, assign the created TwiML App to your active Twilio number.
- Verify that Callback URLs are configured correctly in Twilio.
- Go to My Preferences in the CRM and add your Twilio extension number under Phone Preferences.
Call recordings are displayed in call records
Follow these steps to turn off the call recording:
- Log in to Log in to CRM.
- Click on the User Menu in the top right corner of the screen.
- Click Settings. The Settings page opens.
- Go to the Extensions section. Select Phone Configuration.
- Select the Twilio gateway.
- Click Edit. The Edit page opens.
- Go to the Recording Options section. Select No from the drop-down.
- Click Save.
Incoming and outgoing call pop-ups are not appearing
Follow these steps to resolve the issue:
- Log in to Log in to CRM.
- Click on the User Menu in the top right corner of the screen.
- Click Settings. The Settings page opens.
- Go to the Extensions section. Select Phone Configuration.
- Log in to your Twilio account and navigate to Callback URLs.
- Ensure these URLs match what is configured in the CRM.
- Ensure that you have added the Twilio extension number under My Preferences in the CRM, within the Phone Preferences section.
API Configuration Issue: Difficulty in setting up or configuring Twilio’s API for CRM integration
- Ensure that the Twilio Account SID and Auth Token are correctly integrated with the CRM.
- Verify that the API endpoint URLs are correct.
SMS/Call Delivery Issue: SMS or phone calls are not being received by customers
- Verify that the Twilio numbers are properly configured for sending SMS or making calls.
- Check Twilio’s message logs to identify errors like "Invalid phone number" or carrier-related issues.
Caller ID and Number Configuration Issue: Issues with displaying or configuring the correct caller ID or number for outbound calls or SMS
- Confirm that the correct Twilio number is assigned to the SMS/call process.
- Ensure that the caller ID verification process for outbound calls has been completed.
Webhook Misconfiguration: Issues with handling incoming messages or events via Twilio webhooks
- Ensure that the CRM’s endpoint URL is correctly set up in Twilio for webhook processing.
- Verify that the CRM is capable of accepting POST requests and that it responds with the required status codes.
CRM Integration Failure: Twilio integration with the CRM is incomplete or fails intermittently
- Verify that Twilio is correctly integrated into CRM workflow automation, such as by triggering SMS or calls based on specific CRM events.
- Check for proper use of CRM APIs, plugins, or middleware that connect to Twilio.
References