Messaging Providers
Settings โ Communications โ Messaging Providers is where you connect LeadHub to two-way messaging channels. Once configured, leads can be contacted directly from their detail view, and inbound messages from those channels arrive in Conversations.
Supported channels:
| Channel | Direction | Provider |
|---|---|---|
| Send & Receive | Meta Cloud API (WhatsApp Business) | |
| SMS | Send & Receive | Twilio Programmable Messaging |
| Telegram | Send & Receive | Telegram Bot API |
| Viber | Send & Receive | Viber Business Messages |
| Voice (Click-to-Call) | Outbound + Recording | Twilio Programmable Voice |
WhatsApp Business (Meta Cloud API)โ
Prerequisitesโ
- A Meta Business Account at business.facebook.com
- A WhatsApp Business Account with an approved phone number
- The number must be registered on WhatsApp Cloud API (not the regular WhatsApp app)
Step 1 โ Create a Meta Appโ
- Go to developers.facebook.com โ My Apps โ Create App.
- Select Business as the app type.
- Give it a name (e.g. LeadHub Integration) and click Create App.
- Under Add Products, find WhatsApp and click Set Up.
Step 2 โ Get Your Credentialsโ
- In the WhatsApp product dashboard, go to API Setup.
- Note:
- Phone Number ID (numeric, e.g.
106540352242922) - WhatsApp Business Account ID
- Phone Number ID (numeric, e.g.
- Go to System Users (in Business Settings) โ create a system user โ generate a Permanent Access Token with
whatsapp_business_messagingpermission.
Step 3 โ Configure in LeadHubโ
-
Go to Settings โ Communications โ Messaging Providers.
-
Expand the WhatsApp Business section and fill in:
Field Value Enabled Toggle on Permanent Access Token From Step 2 Phone Number ID From Step 2 Display Phone Number Your WhatsApp number (e.g. +1-415-555-0199) -
Click Save Settings.
-
The Inbound Webhook URL appears after saving โ it looks like:
https://yourdomain.com/api/messaging/whatsapp/webhook/TENANT_ID/TOKEN
Step 4 โ Register the Webhook in Metaโ
- In the Meta App dashboard, go to WhatsApp โ Configuration โ Webhooks.
- Set the Callback URL to your Inbound Webhook URL from Step 3.
- Set the Verify Token to any string (e.g.
leadhub_verify) โ you'll paste this in a confirmation step. - Subscribe to the messages webhook field.
Test it: Send a message to your WhatsApp number from your phone. It should appear as a new Conversation in LeadHub.
SMS (Twilio Programmable Messaging)โ
Step 1 โ Get Twilio Credentialsโ
- Log in to console.twilio.com.
- From the Dashboard, copy your Account SID and Auth Token.
- Under Phone Numbers โ Manage โ Active numbers, note your Twilio number.
Step 2 โ Configure in LeadHubโ
-
Go to Settings โ Communications โ Messaging Providers.
-
Expand SMS (Twilio) and fill in:
Field Value Enabled Toggle on Account SID AC...from Twilio dashboardAuth Token From Twilio dashboard Sender Number Your Twilio number in E.164 format (e.g. +14155550199) -
Click Save Settings.
-
Copy the Inbound Webhook URL that appears after saving.
Step 3 โ Register the Webhook in Twilioโ
- In Twilio, go to Phone Numbers โ Manage โ Active numbers โ click your number.
- Under Messaging โ A message comes in, set the webhook URL to your LeadHub Inbound Webhook URL.
- Set method to HTTP POST and save.
Trial accounts: Can only send SMS to verified numbers. Upgrade to a paid account for production use.
Telegramโ
Step 1 โ Create a Telegram Botโ
- Open Telegram and message @BotFather.
- Send
/newbotand follow the prompts (name and username). - BotFather gives you a Bot Token (format:
123456:ABCdef...). - Also note the Bot Username (e.g.
@your_leadhub_bot).
Step 2 โ Configure in LeadHubโ
-
Go to Settings โ Communications โ Messaging Providers.
-
Expand Telegram and fill in:
Field Value Enabled Toggle on Bot Token From BotFather Bot Username e.g. @your_leadhub_bot -
Click Save Settings.
-
Copy the Inbound Webhook URL that appears.
LeadHub automatically registers the webhook with Telegram using the Telegram Bot API โ you do not need to paste the URL into Telegram manually.
Viber Business Messagesโ
โ ๏ธ Viber Business Messages requires an approved Viber service account (ISV/business account). Regular Viber personal accounts cannot send business messages.
Step 1 โ Get Your Viber Auth Tokenโ
- Contact Viber's partner program and obtain your service account.
- Log in to the Viber Partner Portal and find your Auth Token.
- Note the Sender Name (your brand name, up to 28 characters).
Step 2 โ Configure in LeadHubโ
-
Go to Settings โ Communications โ Messaging Providers.
-
Expand Viber and fill in:
Field Value Enabled Toggle on Auth Token From Viber Partner Portal Sender Name Your brand name -
Click Save Settings.
-
Copy the Inbound Webhook URL and register it in your Viber service account dashboard.
Voice / Click-to-Call (Twilio Voice)โ
Twilio Voice enables one-click calling directly from a lead's detail page. Calls are logged in Call History and can be recorded and automatically transcribed.
Prerequisite: SMS (Twilio) must be configured first โ Voice reuses the same Account SID and Auth Token.
Step 1 โ Configure in LeadHubโ
-
Go to Settings โ Communications โ Messaging Providers.
-
Expand Voice (Twilio Voice) and fill in:
Field Value Enabled Toggle on Voice Caller-ID Number Your Twilio voice number in E.164 format (may differ from SMS number) Record calls Toggle on to record both legs Auto-transcribe + AI summary Toggle on to generate a text transcript and summary (requires OpenAI API key in platform config) -
Click Save Settings.
-
Three URLs appear โ TwiML URL, Status URL, and Recording URL. Copy all three.
Step 2 โ Register Webhooks in Twilioโ
- In Twilio, go to your voice number โ Voice section.
- Set A call comes in โ Webhook โ paste your TwiML URL.
- Set Call status changes โ paste your Status URL.
- Under Recordings, set the webhook to your Recording URL.
Step 3 โ Make Your First Callโ
- Open any lead in LeadHub.
- Click the phone icon next to the lead's phone number.
- The browser initiates a Twilio call โ your phone rings first, then LeadHub bridges to the lead's number.
Sending Test Messagesโ
After saving any channel, click Send Test Message (top right of the page):
- Select the Channel (WhatsApp, SMS, Telegram, or Viber).
- Enter the Phone or Chat ID to send to (your own number for testing).
- Enter a test message body.
- Click Send โ a real message is delivered to that contact.
Use your own number or a test number. This sends a real message.
Troubleshootingโ
| Problem | Solution |
|---|---|
| "Save settings once to generate the inbound webhook URL" | You haven't saved yet โ fill in credentials and click Save first |
| WhatsApp webhook verification fails | Ensure the Verify Token in Meta matches what you used during setup |
| Telegram messages not arriving | LeadHub auto-registers the webhook โ check that the Bot Token is correct |
| SMS test fails | Confirm the Auth Token is correct and your Twilio number is active |
| Voice calls not connecting | Ensure TwiML and Status URLs are both registered in Twilio |
| Tokens appear masked (โขโขโขโขโขโขโขโขโขโขโขโข) | This is intentional โ existing secrets are masked for security. Leave unchanged to keep the stored secret. |