SMSNET
Guide · Pillar

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.

A 26 second explainer: a customer's reply flies from the phone into a note on the CRM contact, then a deal marked Won sends a text back from the same number, followed by the four problems the bridge solves.
Two-way SMS between a customer's phone and Your CRM Diagram in five boxes, left to right: Customer, Your Android phone with your own SIM, SMSNET, the CRM bridge, and Your CRM. The top lane shows an inbound reply travelling from the customer through the phone and SMSNET to the bridge, which writes it as note on the contact. The bottom lane shows a CRM automation (Deal moves to Won) calling the bridge, which sends one SMS through SMSNET with an idempotency key, out from the phone to the customer. Badges: phone matched in five spellings, STOP syncs back, failures logged, retries never text twice. Two-way SMS inside Your CRM: replies in, automations out Top lane: a customer replies. Bottom lane: a CRM automation sends. Same thread, same number. Customerany phone Your Androidyour own SIM SMSNETroutes and paces CRM bridgeone small Worker Your CRMNote on the contact IN “Yes, Tuesday 10:00 works” → signed webhook → note on the contact OUT Deal moves to Won → POST /crm/… → one SMS, Idempotency-Key SMS SMS Phone matched in 5 spellings STOP / הסר syncs back Failures logged, not lost Retries never text twice
Two-way SMS between a customer's phone and your CRM: an inbound reply travels from the customer through your Android phone, SMSNET and the bridge into a note on the contact, while a CRM automation travels the other way and leaves as one SMS.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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?

Mon 09:02 · 1 segment · GSM-7

Yes, Tuesday 10:00 works

09:14 · 1 segment · GSM-7

Logged on Dana Levi in the CRM: "SMS from +972501234567: Yes, Tuesday 10:00 works"

Which CRMs does this work with?

CRMReply becomesSTOP becomesA text is sent whenGuide
HubSpotNote on the contactCheckbox propertyA workflow reaches "Send a webhook"HubSpot SMS integration
PipedriveNote on the personCustom person fieldA deal enters a stagePipedrive SMS integration
SalesforceCompleted Task on the Contact or LeadCheckbox fieldA record-triggered Flow firesSalesforce SMS integration
monday.comUpdate on the itemCheckbox columnA status changes to a labelmonday.com SMS integration
Zoho, Freshsales, Close, Odoo, Airtable, your ownJSON POST to your URLJSON POSTAnything that can POST JSONThis 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 hookCRM bridgeAI agent over MCP
CodeNoneOne small Worker, written for youNone, the agent uses tools
DirectionCRM to SMS onlyBoth waysBoth ways, with judgement
Best for"Text the customer when X happens"Every reply on the record, opt-outs syncedFollow-ups that need a decision per person
Setup3 minutes15 minutes5 minutes plus your approval of each batch
GuideBelowBelowAI 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:

Phone number matching across the formats CRMs store An incoming number in E.164 form, +972 50 123 4567, fans out to five spellings: +972501234567, 972501234567, 0501234567, 050-123-4567 and 501234567. The fourth spelling matches the CRM contact Dana Levi, whose phone is stored as 050-123-4567. Each CRM is searched its own way: HubSpot with one IN search, Pipedrive with an exact search per spelling, Salesforce with SOSL over phone fields, monday with one column query. Why replies find the right contact: one number, every spelling SMSNET sends E.164. CRMs store what people typed. The bridge searches all forms in one call where the CRM allows it. +972 50 123 4567from the SMS (E.164) +972501234567 972501234567 0501234567 050-123-4567 501234567 Dana LeviPhone: 050-123-4567 HubSpot: one search with IN. Pipedrive: exact search per spelling. Salesforce: SOSL IN PHONE FIELDS. monday: one column query.
Phone number matching: the incoming E.164 number fans out to five spellings, and the one stored on the CRM contact matches.

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.

Idempotency: CRM retries produce one SMS A CRM automation fires a webhook, times out and fires twice more. The bridge turns the CRM event into the same idempotency key each time. SMSNET sends one SMS and answers the two repeats with the first result, marked Idempotent-Replayed true. Permanent refusals such as an opted-out number answer the CRM with status 200 and the reason so it stops retrying. A CRM retries. The customer still gets one text. The CRM event id becomes the Idempotency-Key. SMSNET answers a repeat with the first result instead of sending again. CRM automationfires, times out, fires again Bridgekey = crm-hubspot-7f3a… SMSNET try 1 retry retry 1 SMS sent 2 replays: Idempotent-Replayed: true 1 Refusals that will not change (opted out, invalid number, plan limit) answer the CRM 200 with the reason, so it stops retrying.
Idempotency: a CRM that fires three times still produces one SMS; SMSNET replays its first answer to the two retries.

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.

  1. Download the bridge (22 KB, no dependencies), or ask your AI agent to set it up from the MCP recipe (next section).
  2. Copy wrangler.toml.example to wrangler.toml. Set CRM, DEFAULT_COUNTRY_CODE (972 for Israel, 1 for the US) and MESSAGE_TEMPLATE.
  3. Store the secrets: npx wrangler secret put SMSNET_API_KEY (start with an sn_test_ key, which never reaches a phone), CRM_TRIGGER_TOKEN (any long random string) and your CRM's token.
  4. Deploy with npx wrangler deploy. Note the Worker's URL.
  5. Point SMSNET at the bridge and save the secret it returns as SMSNET_WEBHOOK_SECRET.
  6. In the CRM, point the automation at https://<your worker>/crm/<CRM_TRIGGER_TOKEN>. Each CRM guide shows exactly where.
  7. 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.

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.

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

Get it on Google Play

Written by , who builds SMSNET. Product facts on this page are checked against the live pricing page and the running API on the date shown above.