Define a conversion event
onelence_save_event_definitionAdds a conversion event so OneLence reports it, e.g. "Demo booked" sent by the SDK as demo_booked. The preview needs name, event_name. Two steps: call with the change to get a summary and a confirmation_id, show the summary to the user, and only after they agree call again with just confirmation_id.
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": "onelence_save_event_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name, e.g. "Demo booked". | |
| event_name | No | Event name the SDK sends, e.g. demo_booked. | |
| confirmation_id | No | Only when applying: the confirmation_id from the preview, after the user agreed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||