Create Agent Trigger
create_agent_triggerAdd a trigger that starts the agent with these instructions: event (event_type such as lead.created, with an optional source), schedule (a schedule object) or watch. Each start is a run under the agent's permissions and uses agent credits. Its approval rules stay as set in Fine Structure, and a webhook trigger, whose URL is a secret, is made on the agent's screen.
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": {
"agent_id": "<agent_id>",
"name": "<name>"
},
"name": "create_agent_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| source | No | ||
| status | No | active | |
| agent_id | Yes | The agent id, from list_agents. | |
| schedule | No | For trigger_type schedule or watch: the same shape as in schedule_agent_task, e.g. {"type":"daily","time":"08:30","timezone":"Asia/Jerusalem"}. | |
| event_type | No | ||
| instructions | No | ||
| trigger_type | No | event |