Overview
The Omnara n8n integration (n8n-nodes-omnara) enables workflows to communicate with users in real-time through the Omnara platform. Perfect for approval workflows, agent conversations, and guided automation.
Key Capabilities:
- Send non-blocking status updates
- Ask questions and wait for responses
- AI Agent compatibility
- Multi-channel notifications (email, SMS, push)
- Session management
Installation
Install the community node in your n8n instance:- Go to Settings → Community Nodes
- Search for
n8n-nodes-omnara - Click Install
View on npm
Full package documentation and changelog
Quick Start
1
Add Credentials
- In n8n, go to Credentials → New
- Select Omnara API
- Enter your API key from omnara.com/dashboard
- Optionally set custom server URL for self-hosted instances
2
Add Omnara Node
Drag the Omnara node into your workflow
3
Configure Operation
Choose an operation:
- Send Message: Non-blocking status update
- Send and Wait: Ask question and pause workflow
- End Session: Mark agent session as complete
4
Test It
Execute your workflow and check the Omnara dashboard for messages
Operations
Send Message (Non-blocking)
Send informational messages without waiting for response. When to use:- Progress updates
- Status notifications
- Logging agent actions
message_id: ID of created messageagent_instance_id: Session identifierqueued_user_messages: Any pending user responses
Check
queued_user_messages on every send to catch user responses sent between operations.Send and Wait (Blocking)
Ask questions and pause workflow until user responds. When to use:- Approval workflows
- User input required
- Decision points
- Webhook Mode (Default)
- Sync Mode (AI Agents)
For regular workflows
- Uses n8n’s webhook system
- Efficient, event-driven
- Resumes workflow when user responds
- Max wait: 7 days
End Session
Mark agent session as completed.Configuration Examples
Simple Approval Workflow
AI Agent Integration
Agent Instance Management
Session Tracking
Each workflow execution should use a consistentagent_instance_id:
Pattern 1: Webhook-triggered (Recommended)
Queued Messages
Omnara returns queued user messages with every agent message:Notifications
Control how users are notified:Send email notification
Send SMS notification (requires phone verification)
Send push notification (via mobile app or web push)
- Message-level override (in request)
- User preferences (in dashboard)
- Default: no notifications
Error Handling
continueOnFail: true, errors are returned as data:
Troubleshooting
Webhook not resuming workflow
Webhook not resuming workflow
Causes:
- Using sync mode in regular workflow (use webhook mode)
- Webhook URL incorrect in message metadata
- Workflow execution already timed out
AI Agent tool not working
AI Agent tool not working
Causes:
- Missing
syncMode: true - Using webhook mode in AI Agent context
Messages not appearing in dashboard
Messages not appearing in dashboard
Causes:
- Incorrect API key
- Wrong server URL
- Network/firewall issues
- Test credentials: Check credential test passes
- Verify server URL (default:
https://agent.omnara.com) - Check n8n logs for error details
Timeout waiting for response
Timeout waiting for response
Causes:
- User didn’t respond in time
- Poll interval too long
- Sync timeout too short
API Endpoints
The n8n node uses these Omnara API endpoints:| Endpoint | Method | Purpose |
|---|---|---|
/api/v1/messages/agent | POST | Send message (both send & sendAndWait) |
/api/v1/messages/pending | GET | Poll for user responses (sync mode) |
/api/v1/sessions/end | POST | End agent session |
/api/v1/auth/verify | GET | Validate credentials |
Best Practices
Use descriptive agent types
Use descriptive agent types
Set appropriate timeouts
Set appropriate timeouts
Always end sessions
Always end sessions
Handle queued messages
Handle queued messages