Ask Agent
Workflow that sends a message to an AI agent and returns its response
Download ZIP · 1.3 KB
Full JSON
Click to expand
{
"description": "Workflow that sends a message to an AI agent and returns its response",
"tags": [
"manual",
"agent",
"ai",
"message",
"tool-call"
],
"document": {
"name": "Ask Agent",
"enabled": true,
"log_level": "debug",
"trigger": {
"type": "manual"
},
"workflowInput": [
{
"name": "message",
"description": "Message to send to the agent",
"schema": {
"type": "string",
"required": true
}
}
],
"steps": [
{
"condition": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/ai/agent/send",
"actions/ai/agent/send": {
"agent_id": "<your-agent-id>",
"text": {
"expr": "message",
"onFailure": "throw",
"resultType": "any"
}
}
}
}
],
"returnExpression": {
"expr": "step(0).messages"
}
}
}