WhatsApp Workflow Engine

Keyword-triggered conversational workflows via Interakt

Webhook Endpoint

POST /api/webhooks/interakt/incoming

Configure this URL in Interakt dashboard to receive incoming WhatsApp messages.

Workflows API

  • GET /api/workflows - List all
  • POST /api/workflows - Create
  • GET /api/workflows/:id - Get one
  • PUT /api/workflows/:id - Update
  • DELETE /api/workflows/:id - Delete

Conversations API

  • GET /api/conversations - List all
  • GET /api/conversations/:phone - Get history
  • DELETE /api/conversations/:phone - Reset
  • GET /api/conversations/:phone/collected-data

Analytics API

  • GET /api/analytics/workflows - Stats
  • GET /api/analytics/conversions - Conversions

Utilities

  • GET /api/utils/wa-link - Generate wa.me link
  • POST /api/seed - Seed example workflows
  • GET /api/health - Health check
  • POST /api/test/simulate - Test messages

Quick Start

  1. Copy .env.example to .env.local
  2. Add your MongoDB URI and Interakt API key
  3. Run npm run dev
  4. POST to /api/seed to create example workflows
  5. Use /api/test/simulate to test