Skip to main content

Setup

Kyma works with n8n’s built-in OpenAI node since the API is OpenAI-compatible.
1
Add Credentials
2
  • In n8n, go to Credentials > New Credential
  • Select OpenAI API
  • Set:
    • API Key: Your Kyma API key (ky-...)
    • Base URL: https://kymaapi.com/v1
  • 3
    Add a Chat Node
    4
  • Add an OpenAI node to your workflow
  • Select the credential you just created
  • Set Model to any Kyma model ID (e.g., qwen-3.6-plus)
  • Configure your prompt
  • 5
    Test
    6
    Run the workflow to verify the connection works.

    Example Workflows

    Email Classifier

    1. Email Trigger → receives incoming email
    2. OpenAI (Kyma) → classify as support, sales, spam
    3. Switch → route based on classification
    4. Slack/Email → notify the right team
    Set the model to gemini-2.5-flash or qwen-3-32b for fast classification.

    Content Pipeline

    1. Schedule Trigger → runs daily
    2. HTTP Request → fetch trending topics from an API
    3. OpenAI (Kyma) → generate article outline with qwen-3.6-plus
    4. OpenAI (Kyma) → write full article with deepseek-v3
    5. WordPress → publish draft

    Support Auto-Reply

    1. Webhook → receives support ticket
    2. OpenAI (Kyma) → draft reply with qwen-3.6-plus
    3. If → check confidence score
    4. Email → send auto-reply or escalate to human
    Use CaseModelWhy
    Classificationgemini-2.5-flashCheap active alias + long context
    Content writingqwen-3.6-plusBest quality
    Data extractionqwen-3-32bFast + structured
    Complex reasoningdeepseek-r1Deep reasoning
    Since Kyma is OpenAI-compatible, you don’t need a custom n8n node. The built-in OpenAI node works perfectly — just change the base URL.