NOUKAI

Building Your First Flow

Step-by-step guide to creating a flow in the web UI and calling it via API.

This guide walks you through creating a simple summarization flow using the web UI.

Create a New Flow

In your project dashboard at app.noukai.xyz:

  1. Click New Flow
  2. Name: "Text Summarizer"
  3. Slug: text-summarizer
  4. Click Create

Add Your First Block

  1. Click Add Block in the flow editor
  2. Name: "Summarize"
  3. Processor type: LLM
  4. Model: anthropic/claude-sonnet-4-6

Write the prompt:

Summarize the following text in exactly 2 sentences. Be concise and capture the main point.

Text: {{message}}

Add a Second Block

  1. Click the + button after the first block
  2. Name: "Extract Keywords"
  3. Processor type: LLM

Write the prompt:

Extract exactly 5 keywords from this text. Return them as a JSON array of strings.

Text: {{message}}
Summary: {{previous_output}}

Set Output Schema

On the "Extract Keywords" block, set the output schema:

{
  "type": "object",
  "properties": {
    "keywords": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "required": ["keywords"]
}

Publish

  1. Click Publish in the top toolbar
  2. Add a note: "v1: summarize + extract keywords"
  3. Click Set as Production

Your flow is now live.

Call It

curl -X POST https://api.noukai.xyz/api/v1/seq/{org}/{project}/text-summarizer/execute \
  -H "Authorization: Bearer $NOUKAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Artificial intelligence has transformed how businesses operate...",
    "parameters": {}
  }'

Response:

{
  "status": "completed",
  "result": {
    "keywords": ["artificial intelligence", "business", "automation", "transformation", "efficiency"]
  },
  "flowId": "flow-abc123",
  "blockCount": 2
}

Next Steps

On this page