August 31, 2026 · Updated November 18, 2026 · 6 min read

How do you connect an AI support chatbot to iMessage, RCS and SMS?

Connect your custom AI support chatbot to Claw Messenger through the REST API and a persistent WebSocket. One integration handles iMessage, RCS and SMS, while your application supplies customer context and decides when a human takes over.

Managed Agency rollout
$199monthly
per approved subtenant
$250
one-time parent onboarding
1,000
inbound and outbound messages
$0.005
each additional message
One line
for the first approved support client
Request a support rollout review

Agency is request-only. Acceptance depends only on your use case. Payment does not reserve a number or begin provisioning.

NNorthstar SupportOne support client
Isolated line
Client routeTexts from its own iMessage line
Customer · inbound

Where is order 214?

Inbound triageOrder status · known customer
AI support agent · reply

Order 214 ships today. I can send the tracking link.

Matching reply returned on the Northstar route
Illustrative support conversation. Other client traffic stays outside this routing boundary.

Connect your chatbot to your existing support software

Your backend connects the messaging API to the customer records and support tools your chatbot already uses. It receives a customer's message, retrieves the relevant context, and sends the answer back. You build that connection through REST and WebSocket.

01

Receive

Register the customer's phone number and keep an authenticated WebSocket open. Inbound messages arrive as message events for your application to process.

02

Triage

Your application matches the conversation to the customer, checks the request, and gives your assistant the records it needs to answer or ask a person for help.

03

Reply

Send the response through POST /api/agent/send-message. Keep the WebSocket connected to receive the customer's next message and continue the conversation.

Keep your API key on the backend. The API quickstart covers phone registration, authentication and the first reply test. Your agent can run on Linux, Windows, Docker or a cloud server without a Mac.

Receive and reply across three channels through one integration

The same send API and inbound listener serve iMessage, RCS and SMS. Your assistant can answer customers on Apple and Android phones without maintaining a separate messaging integration for each channel.

Leave the optional service field unset to allow automatic routing from iMessage to RCS to SMS according to recipient availability. The API also accepts iMessage, RCS or SMS as the requested service. Check the send result for the routing decision rather than assuming the requested channel was used.

Channel fallback changes how a message reaches a phone. Human fallback changes who answers the customer. Your application handles that second decision using the conversation context.

Pause the bot when a human takes over

Build human handoff into your application so a person can continue the conversation without competing with automated replies. Store who owns each conversation and check that state before every bot send.

  • Set clear triggers. Escalate when the customer asks for a person, the assistant lacks an answer, an account lookup fails, or a request needs approval beyond the bot's permissions.
  • Pause automated replies. Mark the conversation as waiting for a human before notifying your team. Cancel pending bot replies and check ownership again before sending any generated answer.
  • Pass the context. Give the person the transcript, customer reference, lookup results and reason for escalation through the support interface your team uses.
  • Return the human reply. Have your application send the person's response through the same API and client route. Resume the bot only after the person explicitly releases the conversation.

If nobody is available, acknowledge the request and keep it in your team's queue. Give a response time only when your team can meet it; keep the bot paused while the customer waits.

Example: answering an order question and escalating a refund

An order lookup and a refund exception can share one customer conversation while requiring different people to answer. In this illustrative flow, the bot can read order status, but a person must approve an exception to the refund policy.

  1. The customer texts, "Where is order 214?" Your application receives the message, verifies the customer, and looks up their order.
  2. The order system confirms that it ships today. The assistant sends that status through the messaging API.
  3. The customer asks for a refund outside the standard policy. Your application pauses the bot and passes the transcript and order details to a person for review.
  4. The person reviews the request and writes a response. Your application sends it back through the same support route, so the customer can continue texting without starting again.

The order lookup, refund policy and approval queue belong to your application. The messaging API carries the customer's question and the reply from whichever participant owns the conversation.

Track delivery and replies for each conversation

Save message identifiers and send results beside the conversation in your application. This lets your team distinguish an accepted send from a delivery update or an actual customer reply.

  • Record send status. Read status and deliveryStage. A response with ok: true means the send was accepted, not that the handset received it.
  • Inspect channel routing. Save requestedService, selectedService, fallbackAllowed and any fallbackReason. A selected service of auto means automatic routing, not confirmation of a specific channel.
  • Match incoming replies. Use the inbound event's messageId, chatId and from fields with your account context to associate the reply with its conversation.

The send result documentation explains these fields. Delivery status and customer replies show what happened to messages; they do not establish whether a support issue was resolved.

Keep agency support clients on separate routes

Agencies can give each support client an isolated subtenant with its own API key, registered customer numbers and visible sending number, distinct within the Agency account. Use that client's credentials and context for both bot and human replies.

Good first fit

A support team serving known customer numbers. The first review covers one isolated subtenant, one line, and one verified reply. For a store, see whether order updates can go out over iMessage.

Not this offer

Cold outreach, bulk messaging, instant line promises, or a shared route across unrelated customer accounts.

The Agency offer above covers the managed client line. Your application keeps each client's records, conversation ownership and human queue associated with that client's route. See the Agency documentation for subtenant setup.

Test the conversation from first message to human reply

Test with a phone you control before connecting customer traffic. Confirm that the reply reaches your application, then exercise the human handoff through the same conversation.

  1. Register the test number and connect the authenticated WebSocket listener.
  2. Send a message, reply from the phone, and confirm the matching inbound event arrives.
  3. Ask a supported question and check the bot's answer against your source record.
  4. Ask for a person and confirm that the bot stops, including any pending reply.
  5. Send a human response through your application and verify it on the phone.
  6. Repeat with an unavailable human and with the recipient channels your customers use.

A successful API response alone does not prove the conversation works. The test is complete when the phone and your application both receive their expected replies, and the bot stays silent during human ownership.

FAQ

Can I use my own AI model or support assistant?

Yes. Your backend receives messages over WebSocket and sends responses through the REST API. You choose the model, customer context and rules that decide whether the assistant or a person answers.

Do I need three integrations for iMessage, RCS and SMS?

No. All three channels use the same messaging integration. Leave the service unset for automatic routing and inspect the send result to see the reported routing decision.

Does Claw Messenger decide when to transfer a conversation to a human?

Your application makes that decision. It pauses automated replies, passes context to your team, and sends the person's reply through the API. Keep the bot paused until the person releases the conversation.

Does an accepted message mean the customer received it?

No. Acceptance confirms that the send entered processing. Check the delivery status separately, and verify setup with a reply from a controlled phone that reaches your WebSocket listener.