Update the lead capture prompt
update_lead_captureUpdate the lead capture prompt
Replaces the prompt. The AI follows the new prompt on its next replies, usually within a
minute; sending the prompt the agent already has changes nothing. Only prompt is taken:
the tool's other settings can't be sent, and other fields are ignored. The prompt can be
changed while the tool is switched off, but the AI saves no leads until someone switches
it back on in the dashboard. An agent without the tool is 404 lead_capture_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Replaces the prompt. Leading and trailing spaces and line breaks are removed, and the length limits apply to what is left, which is what is stored. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. |