Reply to the user
reply_to_userAnswers the user, as the app's setting allows (see get_app, agent_replies): draft saves a suggested reply the team sends or discards in the inbox; send sends it right away (the user gets it in the app, as a push, and by email if unread), only when the user's message is the last one; off refuses. Write as the team, plainly, without promises the team hasn't made. The chat shows Markdown: write short chat-style Markdown (bold for the one thing to tap or remember, a numbered list for steps, code for exact names, settings and values, links as text); no headings in short replies, no tables or images.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"conversation_id": "<conversation_id>"
},
"name": "reply_to_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| form | No | Up to 5 questions the user answers together; the answers come back structured in get_conversation (form_answer). `text` (or form.text) is the intro. | |
| gift | No | A gift the user opens: a card with an Open gift button that opens `url` with a one-time `devreply_gift=gft_…` token added. The app checks the token (POST /v1/project/gifts/claim with a secret key, or the gift.opened webhook) before granting anything. Only offers the team set up; never in exchange for a rating. | |
| text | No | The reply, in Markdown (shown formatted in the app, the inbox and emails). With options: the question. | |
| links | No | Buttons that open a link: the app's own deep link (its scheme from Settings → deep link, e.g. kneefit://lessons/new) or https. The app's deep-link handling does the rest (open a screen, a paywall). `text` becomes the intro. | |
| options | No | Answer buttons under the reply (one tap answers; the user can still type). Users answer buttons far more often than they type: use them for a quick choice, e.g. ["Too expensive", "Want to try more", "Payment problem"]. | |
| conversation_id | Yes | The conversation's id (from list_conversations or get_user). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sent | Yes | true: the user got it; false: saved as a draft for the team. | |
| app_id | No | Send mode: the app. | |
| status | No | Draft mode: what happens next. | |
| draft_id | No | Draft mode: the draft's id. | |
| message_id | No | Send mode: the message's id. | |
| conversation_id | Yes | The conversation. |