Your First Agent in n8n
In this guide, you’ll build your first n8n workflow connected to INTELLI.
1. Create a New Workflow
- Open n8n.
- Click on "New" to create a new workflow.
- Add a Start node.
2. Add a “Manual Trigger”
- Search for Manual Trigger (When clicking Execute Workflow).
- This node lets you run the flow manually.
3. Add an HTTP Request Node
- Add a new node: HTTP Request.
- Configure it as follows:
Basic Options
- Method: POST
- URL: http://localhost:8081/api/chat
- Authentication: None
Headers
- Authorization: Bearer your-token
- Content-Type: application/json
Replace your-token with the token you see in your terminal before the npm start.
Body Parameters
- Send Body: Yes
- Content Type: JSON
- Specify Body using JSON: YES
Body
{
"model": "local-model",
"messages": [
{
"role": "user",
"content": "Hola"
}
]
}
4. Execute the Workflow
- Click Execute Workflow.
- The HTTP Request node will call INTELLI and return a JSON response.
Example response:
[
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"role": "assistant",
"content": "¡Hola! ¿En qué puedo ayudarte hoy? 😊"
}
}
],
"created": 1755627059,
"model": "local-model",
"object": "chat.completion",
"usage": {
"completion_tokens": 13,
"prompt_tokens": 10,
"total_tokens": 23
},
"id": "chatcmpl-bPY4HXG51RnMFE34qYaaWbR7zltYZjwl"
}
]
Next Steps
- Try changing "content": "Hola" to other prompts.
- Use Set Node to capture user input.
- Chain INTELLI with other n8n nodes (e.g., Email, Slack, Telegram).
- Try our n8n templates.