Everything starts in the dashboard, where you will create a Workflow. A Workflow represents a functionality in your app, in this case, the support chat.
Create a Workflow called “Support Chat”.
Inside your Workflow you can configure:
AI model (GPT, Claude, Gemini)
Prompt (e.g. “You are a customer support agent from Acme Inc…”)
Model settings (response length, style)
Knowledge (what the model will use as context, e.g. docs, links)
Now create a new API key in the dashboard.
Great! Now grab this Workflow’s slug (in this case, support-chat) and your API key and let’s integrate!
You have two options to integrate this Workflow in your app:
import Itzam from "itzam";const itzam = new Itzam("itzam_81d443ca-3952-4c53-bfda-7...");
Use the Workflow’s slug to run it with your user’s input:
Copy
const response = await itzam.streamText({ input: "Where is your documentation?", workflowSlug: "support-chat",});// response = "Follow this link to access our documentation: acme.com/docs"