Tutorial

How to set up a Twilio number for SMS

Give the CRM its own phone number so it can text jobs to your technicians and read their replies.

← All tutorials

Tech Send Dispatch texts job details straight to your technicians, and reads their replies to close, cancel or schedule jobs automatically. To do that it needs a phone number of its own. This guide connects one from Twilio.

Before you start: a Twilio account with a payment method, and about 20 minutes. Twilio charges a small monthly fee for the number plus a fraction of a cent per message. Prefer not to deal with this? Ask us and we can supply a managed number for $5 a month.

1 Create your Twilio account

Go to twilio.com and sign up, then verify your email and phone number.

Important: a free trial account can only text phone numbers you have verified in Twilio. Add a payment method and upgrade to a paid account before going live, otherwise messages to your technicians will fail.

2 Buy a phone number

  1. In the Twilio Console open Phone Numbers, then Manage, then Buy a number.
  2. Choose your country, tick the SMS capability, and pick a local area code your technicians will recognise.
  3. Click Buy.

Write the number down in international format, for example +13035550123. That is the format the CRM expects.

3 Copy your Account SID and Auth Token

Open the Twilio Console home page. On the dashboard you will see Account SID (it starts with AC) and Auth Token (click to reveal it). Keep these private, they are the keys to your Twilio account.

4 Enter the details in the CRM

  1. Sign in to your dashboard, click your profile icon top right, then SMS settings.
  2. Set Send texts via to Twilio (direct).
  3. Paste your Twilio Account SID.
  4. Paste your Twilio Auth Token.
  5. Enter Your Twilio phone number in the +1 format, for example +13035550123.
  6. Click Save.

5 Connect replies back to the CRM

This step is what lets your technicians close a job by texting you back. Skip it and you will be able to send, but never receive.

  1. Still in SMS settings, copy the Inbound webhook URL shown at the bottom.
  2. In the Twilio Console go to Phone Numbers, then Manage, then Active numbers, and click your number.
  3. Scroll to Messaging. Under A message comes in, choose Webhook.
  4. Paste the URL you copied, and set the method to HTTP POST.
  5. Click Save configuration.

6 Register for A2P 10DLC (United States)

US carriers require every business that texts from a local number to be registered. Without it your messages will be blocked, usually with error 30034.

In the Twilio Console go to Messaging, then Regulatory Compliance, then A2P 10DLC, and register your brand and campaign. Use your real business name and EIN. Approval commonly takes a few days.

7 Send a test job

Add yourself as a technician using your own mobile number, then book a job and send it. You should get a text with the job ID, customer name, phone, address with ZIP, and job type. Reply to it with done, total: 250 and the job should close in the CRM by itself.

What your technicians can text back

Technicians simply reply to the job message. Keep the original Job ID line in the reply so the CRM knows which job is meant.

To do thisThey text something like
Close the job with a pricedone, total: 250  /  closing, total amount 250
Book it as an appointmentappointment tomorrow 2pm
Cancel the jobcancel, customer changed their mind

Troubleshooting

What you seeWhat to do
Nothing sends, authentication errorThe Account SID or Auth Token is wrong. Copy them again from the Twilio Console, watching for extra spaces.
Messages fail with error 30034Your A2P 10DLC registration is missing or not approved yet. See Step 6.
Only your own phone receives textsYou are still on a Twilio trial account. Add a payment method and upgrade.
Technician replies never appearThe inbound webhook is not set on the number. Redo Step 5 and check the method is HTTP POST.
Message rejected, invalid numberUse international format with the country code, such as +13035550123, for both the Twilio number and your technicians.
A reply came in but the job did not closeThe reply must keep the Job ID line, and include a closing word such as done, closing or total. If it is unclear the CRM leaves the job alone on purpose.

Still stuck?

Call us on 866-857-6172, Sunday to Thursday, 6am to 2pm ET, or use the contact page and we will walk you through it.