Neox
Capabilities

What's Now Possible

With our n8n integration, you can now build powerful automation workflows that seamlessly integrate with your Next.js application. Here's what you can accomplish.

Core Integration Patterns

Workflow-as-Functions

Register n8n workflows as typed TypeScript functions in your app code.

const enrichUser = registerWorkflow< { email: string }, { name: string; company: string } >({ workflowId: 'user-enrichment', timeout: 10000 }); const userData = await enrichUser({ email: 'user@example.com' });

Perfect for data enrichment, AI processing, or external API calls with full type safety.

Event-Driven Triggers

Connect user actions to automated workflows via webhooks.

// API Route: /api/webhooks/user-signup export async function POST(req: Request) { const proxy = createWebhookProxy('signup-flow'); return proxy(req); }

Trigger welcome emails, slack notifications, CRM updates, and more when users sign up.

Real-World Use Cases

User Onboarding

  • • Welcome email sequences
  • • Account setup workflows
  • • Team invitations
  • • Feature tour triggers
  • • Progress tracking

Data Processing

  • • File uploads & processing
  • • Image resizing & optimization
  • • CSV data transformation
  • • AI content generation
  • • Report generation

Security & Compliance

  • • Failed login notifications
  • • Security audit logging
  • • GDPR data exports
  • • Compliance reporting
  • • Access reviews

AI Integration

  • • Content moderation
  • • Sentiment analysis
  • • Chatbot responses
  • • Recommendation engines
  • • Predictive analytics

Business Automation

  • • Invoice generation
  • • CRM synchronization
  • • Inventory updates
  • • Order processing
  • • Customer surveys

External Integrations

  • • Slack notifications
  • • Email marketing sync
  • • Social media posting
  • • Analytics tracking
  • • Payment processing

Implementation Examples

Example 1: User Registration Flow

When a user signs up, automatically send a welcome email, create a Slack channel, and add them to your CRM.

// In your signup API route const welcomeFlow = registerWorkflow< { email: string; name: string }, { success: boolean; slackChannel?: string } >({ workflowId: 'welcome-new-user', timeout: 15000 }); const result = await welcomeFlow({ email: user.email, name: user.name });

Example 2: Real-time Event Processing

Process webhook events from external services and trigger appropriate workflows.

// API Route: /api/webhooks/stripe export async function POST(req: Request) { const proxy = createWebhookProxy('payment-success'); return proxy(req); } // The workflow handles: // - Invoice generation // - Customer notification // - Accounting system update // - Analytics tracking

Example 3: Batch Data Processing

Process large datasets with automatic retry logic and progress tracking.

const results = await patterns.batchExecute( 'data-enrichment-workflow', userEmails, // Array of email addresses 5 // Process 5 at a time ); // Returns success/failure for each item // with automatic retry and error handling

Admin Dashboard

Manage all your workflows through the integrated admin dashboard:

  • • Create and edit workflows
  • • Monitor execution status
  • • View performance metrics
  • • Debug failed executions
  • • Import/export workflows
  • • Real-time execution logs

Getting Started

To start using these capabilities:

  1. Set up your n8n instance and configure the environment variables
  2. Create workflows in n8n with the desired automation logic
  3. Use the admin dashboard to manage and monitor workflows
  4. Integrate workflows into your app code using the SDK patterns
  5. Set up webhooks for event-driven automation