set_variable
Assign a value to a contact's variable in a SendPulse bot to store or update contact-specific data for messaging and automation.
Instructions
Set a variable value for a contact
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": {
"bot_id": "<bot_id>",
"contact_id": "<contact_id>",
"variable_name": "<variable_name>",
"variable_value": "<variable_value>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | The ID of the bot | |
| contact_id | Yes | The ID of the contact | |
| variable_name | Yes | Variable name | |
| variable_value | Yes | Variable value |