Send an agent a message, now or on a schedule
POST /Platform/jobs/invoke-agent
Send an agent a message, now or on a schedule.
The agent takes a turn on the message exactly as if it arrived
through a channel, with its real tools: a follow-up it sends reaches
a real contact. This is the common way to schedule a reminder or a
periodic check for an agent (when="every monday 9am"). A
scheduled turn acts for you, with your access when it runs, as the
tool execution route describes.
Body parameters
agent_id: str. The target Agent's id.message: str. The message to deliver to the agent.when: optional str. Optional time. Omit to run now; otherwise an ISO datetime (preferred) or natural language, one-off or recurring, with the same rules as the tool execution route.state: optional str. Optional note the scheduled job hands each run (a cursor, what is done), at most 8192 characters. The agent sees it under "Job state:" after the message and can replace it from the run. Ignored withoutwhen.
Returns
ToolExecutionReceipt
id: str or null. Execution or scheduled-job identifier, when available.scheduled: bool. Whether the execution was scheduled for later.
Example request
curl -X POST "https://api.hilus.ai/Platform/jobs/invoke-agent" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'