Connect SMS to Your CRM: Two-Way Texting From Your Own Number
To connect SMS to a CRM in both directions you need two pipes. One carries replies into the CRM, as a note on the right contact. The other lets a CRM automation send a text. SMSNET gives you both from your own Android phone and number: a signed webhook for every reply, delivery failure and opt-out, and one API call to send. The free, open CRM bridge on this page joins the two for HubSpot, Pipedrive, Salesforce, monday.com or any CRM that can call a URL. It handles the four things that usually break: phone formats, retries, opt-outs and failures nobody sees.
What does two-way SMS in a CRM actually mean?
Four things. If one is missing, people end up texting from their own phones again and the CRM loses the conversation.
- Replies land on the record. A customer answers "Tuesday works". The answer appears in the timeline of that contact, deal or item, where the owner already looks.
- The CRM can send. A stage change, a form, a status column or a workflow step sends a text with the contact's own details, and nobody copies and pastes.
- Opt-outs flow back. When someone replies STOP (or הסר once Hebrew is on, or one of your own keywords), the CRM record shows it, so no list or workflow texts them again.
- Failures are visible. When a text can't be delivered, that shows on the record too. Nobody assumes the customer saw it.
Here is what it looks like from the customer's side. They see one ordinary thread with your number:
Hi Dana, it's Avi from Levi Kitchens. Your quote for the island is ready. Want to go over it this week?
Yes, Tuesday 10:00 works
Logged on Dana Levi in the CRM: "SMS from +972501234567: Yes, Tuesday 10:00 works"
Which CRMs does this work with?
| CRM | Reply becomes | STOP becomes | A text is sent when | Guide |
|---|---|---|---|---|
| HubSpot | Note on the contact | Checkbox property | A workflow reaches "Send a webhook" | HubSpot SMS integration |
| Pipedrive | Note on the person | Custom person field | A deal enters a stage | Pipedrive SMS integration |
| Salesforce | Completed Task on the Contact or Lead | Checkbox field | A record-triggered Flow fires | Salesforce SMS integration |
| monday.com | Update on the item | Checkbox column | A status changes to a label | monday.com SMS integration |
| Zoho, Freshsales, Close, Odoo, Airtable, your own | JSON POST to your URL | JSON POST | Anything that can POST JSON | This page, generic setup |
The same bridge serves every row. You set one variable, CRM = "hubspot" (or pipedrive, salesforce, monday, generic).
Three ways to connect, from zero code to an AI agent
| Inbound hook | CRM bridge | AI agent over MCP | |
|---|---|---|---|
| Code | None | One small Worker, written for you | None, the agent uses tools |
| Direction | CRM to SMS only | Both ways | Both ways, with judgement |
| Best for | "Text the customer when X happens" | Every reply on the record, opt-outs synced | Follow-ups that need a decision per person |
| Setup | 3 minutes | 15 minutes | 5 minutes plus your approval of each batch |
| Guide | Below | Below | AI agent CRM follow-up |
Zero code: the inbound hook
If you only need the CRM to send, SMSNET can take the CRM's own webhook directly. Create a hook that says where the phone number is in the payload and what the text says:
curl -X POST https://smsnet.net/api/v1/hooks/inbound \
-H "X-API-Key: $SMSNET_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"Quote ready","phone_field":"contact.mobile","template":"Hi {{contact.first_name}}, your quote for {{deal.name}} is ready. Reply here with any question."}'
The answer holds a URL, shown once. Paste it into the CRM as the webhook address. Each call becomes at most one text. A CRM retry is filtered only if it sends an Idempotency-Key or webhook-id header; if it doesn't, the bridge below is the safe route. A number that opted out answers skipped: "opted_out", so the CRM stops retrying. You can also manage hooks in the portal under Settings, Hooks.
Why do most CRM SMS integrations break?
Most of them work on the day of the demo and quietly fail a month later. There are four reasons, and the bridge is built around each one.
Phone numbers are stored the way people typed them
SMSNET reports every number in E.164 (+972501234567). Your CRM holds 050-123-4567, 0501234567, (415) 555-0100 or a mix. An exact match finds nothing, the reply has no home, and it gets lost. The bridge searches every common spelling, in one call where the CRM allows it:
CRMs retry, and customers get two texts
A webhook times out, the CRM sends it again, and the customer gets the same text twice. The bridge turns each CRM event into an Idempotency-Key. SMSNET sees the same key, does not send again, and answers with the first result. It keeps each key for 24 hours.
The opposite problem is just as common. A send that can never succeed, because the number opted out or is invalid, keeps getting retried by a CRM that saw an error. The bridge answers those with 200 and the reason, so the CRM stops. It returns an error only for a real outage, and then the retry is the right thing to do.
STOP never reaches the CRM
SMSNET opts a person out the moment they reply STOP (or הסר, once you turn on the Hebrew opt-out words under Safety → Rules; only English is on by default), and refuses to text them again from your account. That protects your number. But your CRM list doesn't know, so the next campaign tool you connect would try. The bridge listens for contact.opted_out and ticks the field you choose on the record.
Failures are silent
A text that a carrier refuses shows as "sent" in a tool that only logs the API call. The bridge listens for message.status and writes the failure, with its reason code, on the record. "Delivered" is not logged by default, because a timeline full of "delivered" hides the replies people care about. One variable turns it on.
Set it up in 15 minutes
You need an SMSNET account with a phone connected (Get the app), a Cloudflare account (the free plan is enough), and admin rights in your CRM.
- Download the bridge (22 KB, no dependencies), or ask your AI agent to set it up from the MCP recipe (next section).
- Copy
wrangler.toml.exampletowrangler.toml. SetCRM,DEFAULT_COUNTRY_CODE(972for Israel,1for the US) andMESSAGE_TEMPLATE. - Store the secrets:
npx wrangler secret put SMSNET_API_KEY(start with ansn_test_key, which never reaches a phone),CRM_TRIGGER_TOKEN(any long random string) and your CRM's token. - Deploy with
npx wrangler deploy. Note the Worker's URL. - Point SMSNET at the bridge and save the
secretit returns asSMSNET_WEBHOOK_SECRET. - In the CRM, point the automation at
https://<your worker>/crm/<CRM_TRIGGER_TOKEN>. Each CRM guide shows exactly where. - Test with the test key: fire the automation on your own contact, check the note, then switch to an
sn_live_key.
Step 5 is one call:
curl -X POST https://smsnet.net/api/v1/webhooks/endpoints \
-H "X-API-Key: $SMSNET_API_KEY" -H "Content-Type: application/json" \
-d '{"url":"https://smsnet-crm-bridge.you.workers.dev/smsnet",
"events":["message.received","message.status","contact.opted_out","contact.opted_in"],
"description":"CRM bridge"}'
The heart of the bridge is short. This is how a CRM event becomes one safe text:
// core.js (excerpt): CRM -> SMSNET
const to = toE164(t.phone, env.DEFAULT_COUNTRY_CODE || "972");
const text = renderTemplate(t.template || env.MESSAGE_TEMPLATE, t.vars);
const eventKey = t.eventKey || (await sha256Hex(raw)); // same CRM event, same key
const sent = await sendSms(env, {
to, body: text,
idempotencyKey: `crm-${adapter.name}-${eventKey}`, // a retry replays, never resends
clientRef: `crm:${adapter.name}:${t.contactId}`, // every status webhook names the record
});
The bridge ships with 14 tests that run without any CRM account, against a fake network, using the same webhook signature vectors as the SMSNET SDKs. Run npm test before you change it.
Let your AI agent build it for you
SMSNET's MCP server carries the bridge, with every adapter and a step-by-step recipe for each CRM. Connect Claude, ChatGPT or Cursor to https://smsnet.net/mcp and ask:
Connect my Pipedrive to SMSNET. When a deal enters "Booked", text the person. Put every reply on the person as a note.
The agent calls get_integration_recipe and follows the tested code instead of inventing its own. It walks you through the CRM settings and tells you which secrets to paste where, without asking for them in the chat. Clients that show MCP prompts offer it as Connect my CRM to SMS (connect_crm). It works before you even have an account: the recipes are public, so you can see what you would build. The MCP guide has the configuration block.
How do I connect a CRM that is not on the list?
Set CRM = "generic". The bridge then speaks plain JSON both ways, so Zoho, Freshsales, Close, Odoo, Airtable, a no-code tool or your own database can take part.
The CRM sends to /crm/<token>:
{ "phone": "050-123-4567", "sms_text": "Your technician is on the way", "contact_id": "C-1042", "event_id": "job-889-dispatched" }
The bridge posts to your GENERIC_EVENTS_URL:
{ "type": "sms.in", "contact_id": "C-1042", "phone": "+972501234567", "body": "Running 10 min late", "at": "2026-11-28T09:12:03.000Z" }
event_id is what makes a retry safe. Without it, the bridge uses a hash of the body. An optional GENERIC_LOOKUP_URL turns a phone number into your contact id. Without one, the phone number is the id. Zapier, Make and n8n can sit on either side. The n8n guide shows the HTTP node.
What does it cost?
SMSNET charges per plan, not per message, and your carrier bills the SIM as it does today. The free plan covers 300 messages a month, up to 20 a day, with the API, webhooks and MCP. Replies are never counted, which matters for two-way CRM texting, where replies are the point. The bridge runs on Cloudflare's free Workers plan for most small teams. Current plans are on the pricing page.
Consent and the law
Text people who gave you their number for this kind of message. A reply to a quote or a booking confirmation is a service message. A promotion to a list is advertising, and in Israel section 30A of the Communications Law requires prior consent and an easy opt-out (the Hebrew guide explains it). In the US, the rules differ by state and by message type. SMSNET helps: every STOP is honoured automatically (הסר too, once Hebrew is on), {{unsubscribe}} adds a personal opt-out link, and the bridge keeps the CRM in step. It does not make a message compliant by itself.
FAQ
Do I need a developer to connect SMS to my CRM?
For sending only, no: the inbound hook takes your CRM's webhook directly. For two-way, the bridge is written and tested, and you set variables and paste two URLs. An AI agent connected to SMSNET's MCP can walk you through it step by step.
Which number do customers see?
Your own. Texts leave from the SIM in the Android phone you connected, so replies come back to that number and appear in the CRM through the bridge.
What happens if my CRM is down when a reply arrives?
The bridge answers SMSNET with an error, and SMSNET retries the webhook on a schedule that runs for about three days. When the CRM is back, the note is written. With the optional KV store, a reply that was already written is never written twice.
Can a reply create a new contact?
Yes, with CREATE_UNKNOWN = "1": HubSpot creates a contact, Pipedrive a person and Salesforce a Lead. It is off by default, because a wrong number or spam would otherwise fill your CRM.
Will a CRM retry send the same text twice?
No. Each CRM event becomes an idempotency key. SMSNET sends once and answers any repeat with the first result.
Does it work with WhatsApp?
This guide is about SMS from your own SIM. When the person answers through RCS in Google Messages, the reply arrives the same way, marked as RCS on the note.
Related guides
Each CRM has its own walkthrough: HubSpot, Pipedrive, Salesforce and monday.com. To let an agent work the pipeline, read AI agent CRM follow-up by SMS. For how webhooks are signed and retried, read Receive SMS webhooks. The phone side is Turn your Android phone into an SMS gateway.
Send your first message today
Free plan, no card: 400 messages a month from your own number, with the API, webhooks and MCP included.
Get the app See pricing