Write to a user first
start_conversationSends a message to one user who may never have written in: pick them by user_id, login_id or attribute + value (find_users). If they have an open conversation it goes there, else a new one starts. A normal message is delivered like a reply: unread in the app, a push, an email if unread. Set promotional for offers and discounts: those only show in the app (no push or email), are labelled, skip users who asked for no offers, and one user gets at most one per 7 days. Needs the app's agent replies set to send (a person decides in the dashboard). Write as the team, plainly; never invent an offer the team hasn't made.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "start_conversation"
}
}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 message, in DevReply Markdown. | |
| 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. | |
| value | No | The attribute's value, matched as text. | |
| app_id | No | The app's id (from list_apps). Optional when there is only one. | |
| options | No | Optional answer buttons, as in reply_to_user. | |
| user_id | No | DevReply's id for the user (find_users). | |
| category | No | For a new conversation (default other). | |
| login_id | No | Or the app's own id (DevReply.login). | |
| attribute | No | Or an attribute the app sets, with value. | |
| promotional | No | An offer or campaign rather than the team reaching one person. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | The app. | |
| delivery | No | push (notifications on) or in_app (promotional, or notifications off / not asked / unknown: they see it next time they open the app). | |
| message_id | Yes | The message. | |
| promotional | Yes | Sent as a promotion: in the app only, no push or email. | |
| conversation_id | Yes | Where it went. | |
| new_conversation | Yes | False: it went into their open conversation. |