Quick Start
Let’s create a simple workflow that responds to a webhook with an AI-generated message.Step 1: Create a New Workflow
- Open MachinaOs at
http://localhost:3000 - Click File > New Workflow or press
Ctrl+N - You’ll see an empty canvas with a component palette on the left
Step 2: Add a Webhook Trigger
- In the component palette, expand Utilities
- Drag Webhook Trigger onto the canvas
- Click the node to select it, then click the gear icon to configure:
Step 3: Add an AI Chat Model
- Expand AI Models in the palette
- Drag OpenAI Chat Model onto the canvas
- Position it to the right of the Webhook Trigger
- Connect them by dragging from the Webhook’s output handle to the AI model’s input handle
Configure the AI Model
Click the gear icon and set:Step 4: Set the Prompt
In the AI model’s parameters, set the Prompt:The
{{webhookTrigger.body}} syntax pulls data from the webhook’s output.Step 5: Add a Webhook Response
- Drag Webhook Response from Utilities
- Connect the AI model’s output to the Webhook Response input
- Configure it:
Step 6: Deploy and Test
- Click the Deploy button (purple) in the toolbar
- Your workflow is now listening for webhooks
Test with curl
Your First Workflow
Your completed workflow looks like this:Congratulations! You’ve built your first MachinaOs workflow.