Email and WhatsApp replies
Start a conversation, wait for the customer, read the thread and reply until the goal is met.
Read https://rabt.systems/en/developers/docs/build/email-whatsapp-replies.md Rabt MCP server: https://api.rabt.systems/mcp API reference (OpenAPI): https://rabt.systems/openapi.json Connect to it: reading the docs needs no sign-in; when a step acts on my account, give me the sign-in link and I approve it. If you cannot add a connector yourself, ask me to add it by this address. Task: Message this customer on WhatsApp with the text I will give you, wait for their reply, then answer them.
# Email and WhatsApp replies Start a conversation, wait for the customer, read the thread and reply until the goal is met. ## Goal Start a conversation, wait for the customer, read the thread and reply, until the goal is met. ## The prompt ```text Message this customer on WhatsApp with the text I will give you, follow the message status, wait for their reply, then read the thread and answer. Try it first with a test key and a simulated customer reply. ``` ## What your agent does - `start_conversation`: the customer’s phone or email (or a contact id) and the first message. Email needs `channel_address_id` (the sender: ask, never pick). WhatsApp outside its 24-hour window needs `message.whatsapp_template`. - `wait_for_status` follows queued, sending, sent, delivered and read or failed; `wait_for_message` waits for the reply. For many customers: `list_new_customer_messages` with `cursor` (each message comes once). - `get_ticket_conversation` reads the thread and `send_ticket_message` (`mode: reply`) answers. Every send takes an `idempotency_key`. ## Recommendations 1. With a test key, `simulate_customer_message` writes a customer’s reply into a ticket of the test space, so the whole loop runs without a customer. 2. Send, follow its status, wait for the reply, read the thread, reply, wait again, and repeat. 3. A wait that ends empty returns the same cursor: call again with it. ## Pitfalls - Reply windows are the channel’s own: `reply_window_state.way_out` says what may still go. > **Recommendation:** Build and check everything with a test key (`rbk_test_…`): sends are simulated, nothing is charged and nothing reaches a customer. > **Limits:** Rabt’s own AI agent only answers customers who write; reaching out first is your app’s job.

- The customer’s messages
- Internal notes the customer never sees
- Close the ticket
- Reply to the customer or write an internal note
Goal
Start a conversation, wait for the customer, read the thread and reply, until the goal is met.
The prompt
Message this customer on WhatsApp with the text I will give you, follow the message status, wait for their reply, then read the thread and answer. Try it first with a test key and a simulated customer reply.What your agent does
start_conversation: the customer’s phone or email (or a contact id) and the first message. Email needschannel_address_id(the sender: ask, never pick). WhatsApp outside its 24-hour window needsmessage.whatsapp_template.wait_for_statusfollows queued, sending, sent, delivered and read or failed;wait_for_messagewaits for the reply. For many customers:list_new_customer_messageswithcursor(each message comes once).get_ticket_conversationreads the thread andsend_ticket_message(mode: reply) answers. Every send takes anidempotency_key.
Recommendations
- With a test key,
simulate_customer_messagewrites a customer’s reply into a ticket of the test space, so the whole loop runs without a customer. - Send, follow its status, wait for the reply, read the thread, reply, wait again, and repeat.
- A wait that ends empty returns the same cursor: call again with it.
Pitfalls
- Reply windows are the channel’s own:
reply_window_state.way_outsays what may still go.
Recommendation: Build and check everything with a test key (
rbk_test_…): sends are simulated, nothing is charged and nothing reaches a customer.
Limits: Rabt’s own AI agent only answers customers who write; reaching out first is your app’s job.