curl -X POST https://api.trillet.ai/api/v1/flows \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Simple Greeting", "agentId": "agent_123abc", "type": "simple", "prompt": "Greet the caller and ask how you can help them today." }'
Response:
Copy
Ask AI
{ "id": "flow_xyz789", "name": "Simple Greeting", "status": "active", "agentId": "agent_123abc", "type": "simple", "prompt": "Greet the caller and ask how you can help them today.", "createdAt": "2024-01-20T12:01:00Z"}