AI API Download .md
v1.0 REST API

AI Features API

Integrate intelligent automation tools like generating conversation flows automatically via AI.

Download as Markdown
Base URL
https://app.wacm.in/api

Authentication

Like other WACM APIs, the AI API requires a Bearer Token via the HTTP Header.

HTTP Header (Required)

Send the token securely in the Authorization request header.

Example Request Header
Authorization: Bearer YOUR_API_TOKEN

Flowmaker (Bot Generator)

POST /api/flowmaker/generate

Generates flow nodes based on a natural language prompt without creating a new flow entry in the database. Optionally specify a `flow_id` to provide context.

Parameters

Parameter Description
prompt Req Natural language string describing the desired flow logic.
flow_id Optional existing flow ID.
POST /api/flowmaker/generate-and-create

Generates flow nodes and immediately persists a new flow with a given name. Checks subscription plan limits before executing.

Parameters

Parameter Description
prompt Req Natural language string describing the desired flow logic.
name Req The name for the newly created flow (max 255 chars).
Response: Generate 200 OK
{
  "success": true,
  "data": [
    { "id": "node_1", "type": "message", "data": {} }
  ]
}
Response: Generate & Create 200 OK
{
  "success": true,
  "data": {
    "flow_id": 123,
    "redirect_url": "https://app.wacm.in/flowmaker/edit/123"
  }
}

© 2026 WACM. All rights reserved. API Version 1.0.