Leave your user's email address for a conversation
set_buyer_emailLeave your user's email address in a conversation that ask_seller started, to move the conversation to their Egonex account. Egonex emails that address a confirmation link (it works once and expires in 24 hours); nothing changes until your user opens it, and the answer is the same whatever the address (email_status pending). Once confirmed, the conversation and the messages already sent in it belong to the Egonex account for that address (a guest account is set up if there isn't one): your user can read and answer the seller's replies on Egonex, what you ask sellers with this conversation_id is sent from that account, and Ego's answers count for that account rather than for this conversation. Each conversation needs its own confirmation, also when you start a new one with the same address. A conversation keeps the first address that is confirmed (email_already_set for another one). Pass accept_terms=true only if your user agreed to Egonex's Terms of Service (https://legal.egonex.ai/en/terms) and Privacy Policy (https://legal.egonex.ai/en/privacy); the confirmation email says that confirming means agreeing to them. At most 5 times an hour and 3 different addresses a day per conversation (slow_down says when to try again). Errors end with their code: not_found, invalid_input, email_already_set, slow_down.
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>",
"buyer_email": "<buyer_email>",
"accept_terms": "<accept_terms>"
},
"name": "set_buyer_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer_name | No | Optional name shown to the seller. | |
| buyer_email | Yes | Your user's email address. Egonex sends a confirmation link there. | |
| accept_terms | Yes | true only if your user agreed to Egonex's Terms of Service (https://legal.egonex.ai/en/terms) and Privacy Policy (https://legal.egonex.ai/en/privacy). | |
| conversation_id | Yes | From ask_seller. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | What to do next. | |
| email_status | Yes | pending = a confirmation link was sent (if the address can get email from Egonex) and your user hasn't opened it yet; confirmed = this address is confirmed for the conversation. | |
| conversation_id | Yes | The conversation. |