create_lead
Create a new CRM lead in Odoo with a preview-first flow: review exactly what will be written, then confirm to save it after user approval.
Instructions
Create a new CRM lead in Odoo, in two steps.
1. Call with confirm=false (the default): nothing is written; you get a preview
of exactly what would be created. Show it to the user.
2. If the user approves, call again with the same arguments and confirm=true.
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": {
"name": "<name>"
},
"name": "create_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short title of the lead, e.g. 'Office chairs for Acme'. | |
| No | Contact email address. | ||
| confirm | No | false (default): only return a preview, nothing is written. true: actually create the lead. Only use true after the user has seen and approved the preview. | |
| partner_name | No | Customer company name. | |
| expected_revenue | No | Expected revenue in the company currency. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||