create_lead
Create a CRM lead/opportunity in Odoo, with optional preview before confirmation and extra custom field support.
Instructions
Create a CRM lead/opportunity (crm.lead). Preview unless confirm=True.
Use extra_values to set fields this helper doesn't model, including custom mandatory fields (e.g. {"presales_id": 5}).
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 | ||
| No | |||
| phone | No | ||
| confirm | No | ||
| description | No | ||
| contact_name | No | ||
| extra_values | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |