Your First Automation
In this guide, we will build a simple "Webhook -> LLM -> Log" automation.
Prerequisites
Ensure you have a running stack:
make dev
Step 1: Create Automation
- Open Admin Studio: http://localhost:8000/admin/
- Navigate to Automations > Add Automation.
- Name:
Welcome Bot, Slug:welcome-bot. - Tenant ID:
default.
Step 2: Add Trigger
- Navigate to Triggers > Add Trigger.
- Automation:
Welcome Bot. - Type:
Webhook. - Event Type:
user.signup. - Save.
Step 3: Define Workflow
- Navigate to Workflows > Add Workflow.
- Automation:
Welcome Bot. - Version:
1. - Graph (JSON):
json { "steps": [ { "id": "stats", "action": "llm.chat", "params": { "prompt": "Say hello to {{ event.payload.name }}", "model": "gpt-4" } } ] } - Check
Is Liveand Save.
Step 4: Test
Send a webhook:
curl -X POST http://localhost:8000/api/v1/webhooks/default/user.signup \
-H "Content-Type: application/json" \
-d '{"name": "Alice"}'
Check the Dashboard or Executions tab in Admin Studio to see the result!