Think of a bank that lets other businesses offer accounts under their own name. The vault, the ledger and the rules about who may touch which account belong to the bank. The counter, the forms and the colour of the walls belong to the business. Customers walk into a shop they recognise, and the money is still kept properly.
Wetel can sit inside a software product in much the same way. Your customers manage their AI employees on a screen inside your product, in your vocabulary, while Wetel runs the agents, the workflows and the separation between customers underneath. The screen talks to Wetel’s admin API.
This post is for a developer or product lead at a software company deciding whether to build that screen: what the admin API exposes, how authentication and per-customer workspaces work, how to generate forms from the live schema, and what you still have to build yourself. Wetel has its own dashboard, and you can use it. This post is about building yours.
What does the admin API expose?
The admin API is the GraphQL surface for creating and editing agents and workflows, as opposed to the runtime surface for starting conversations with an agent that already exists. Wetel’s own dashboard is built entirely on it; nothing there is special-cased or internal-only, so whatever the dashboard does, your screen can do through the same calls.
What it covers, as documented:
- Agents, full create/read/update/delete. Persona, use case, voice settings, and which workflow the agent runs. A workflow is attached with
updateAgent; it cannot be set when the agent is created. - Workflows, in three calls.
createWorkflowmakes an empty draft,updateWorkflowsaves the graph (your Save button), andpublishWorkflowmakes it live. An agent only ever runs a published workflow, and edits to a live workflow do not reach customers until you publish again. - Tools. Registering MCP servers as connectors and plain REST endpoints as custom actions, plus a live call that lists a connector’s tools so your editor can offer a picker.
- Testing and watching. The same session calls the dashboard uses for test conversations, with a live event feed that reports each workflow step as it runs, and a per-run trace afterwards.
- Drafting with AI.
aiGenerateWorkflowdrafts a graph from a plain-English description andgenerateWorkflowDiffproposes a change to an existing one. Neither saves anything; your user reviews the result and you save it withupdateWorkflow.
mutation CreateWorkflow($input: CreateWorkflowInput!) { createWorkflow(input: $input) { id }}
mutation UpdateWorkflow($input: UpdateWorkflowInput!) { updateWorkflow(input: $input) { id nodes edges }}
mutation PublishWorkflow($id: Int!) { publishWorkflow(id: $id) { id isPublished version }}How do my customers’ AI employees stay separate?
One Wetel workspace per customer of yours. Every account belongs to exactly one workspace, and agents, workflows, tools, knowledge bases, sessions and API keys are kept separate per workspace: every request is scoped to the workspace of the signed-in login or the API key, and a request for one workspace cannot see or affect another, whatever ids it guesses. Workspaces share the platform’s database; a dedicated database per workspace is designed but not offered today.
flowchart LR U["Your customer's staff<br/>sign in to your product"] --> B["Your backend<br/>maps customer to workspace"] B -- "credentials for workspace A" --> WA["Wetel workspace A"] B -- "credentials for workspace B" --> WB["Wetel workspace B"]Two practical consequences:
- Your backend keeps one set of Wetel credentials per customer, stored server-side and keyed by your own customer id. Never share one key across several customers as a shortcut; a bug in one integration should never reach another customer’s data.
- Creating a workspace for each new customer is not a self-service call today. The docs describe the create-workspace operation as a bootstrap and admin step, not a signup button, and say its exposure is expected to change. Plan your onboarding with Wetel rather than around that call.
How does authentication work, and why does the key stay server-side?
Two Wetel credentials matter here, and they unlock different things.
- A JWT comes from a normal login. It is short-lived and cannot be revoked before it expires. It is what every builder operation needs: creating and updating agents and workflows, registering connectors, generating API keys.
- An API key is long-lived, with no expiry, and is for runtime work: starting sessions, running a published workflow headlessly, a few read-only references such as the node configuration schemas below. There is no API-key path into builder operations today, so a screen that edits agents or workflows needs a JWT as well.
Both stay on your server. The pattern the docs call the gateway: your frontend talks to your backend, your backend looks up the right customer’s credentials and calls Wetel. If a chat needs to run in a browser, only the short-lived, session-scoped token returned when a session starts ever reaches it. An API key in client-side code can be copied by anyone who opens the browser’s developer tools, and it keeps working for as long as it is valid.
Your own users sign in however your product already signs them in; Wetel does not ask you to change that. If you run more than one consumer against the same workspace (a staging copy of your product and production, say), use a named API key per consumer so each can be revoked on its own.
One thing to design around: approval decisions in a workflow are made by a signed-in workspace owner, and an API key cannot decide. If your screen offers an approvals inbox, the person deciding must be acting as an owner of that customer’s workspace. A human is always in charge of an AI employee; your screen is where that person does their job.
Can I generate the editing forms from the live schema?
Yes, and you should. The awkward part of a workflow editor is the property panel: every step type has different settings. Rather than copying those shapes by hand, query nodeConfigSchemas once when the editor loads:
query { nodeConfigSchemas { type schema }}It returns a real JSON Schema (draft 2020-12) for each of the 10 step types that have settings, generated from the backend’s own validation code. It accepts a JWT or an API key. Drive a form generator from it, and a new setting appears in your editor the day it ships, not the day someone notices your copy is stale.
Read the schema the way it is meant to be read. Every property is optional and unknown keys are allowed, because a step’s configuration is deliberately an open bag; use the schema to build forms and check what your user does set, not to reject extra keys. Two things it will not tell you:
- Case. The type you pass to the query is upper case (
LLM), but the type inside your saved workflow JSON must be lower case ("llm"). An upper-case type is refused at save and publish. - Fields that cancel each other. The
llmschema lists bothsystemPromptandpromptTemplate, but settingsystemPromptmakes the step ignorepromptTemplate. HidesystemPromptbehind an “advanced” toggle.
The schema gives you fields, not design. Which settings a support lead should see first, and which belong in an advanced drawer, is still your product decision.
What do I still have to build myself?
The parts that are about your product, not the engine. A first working version is three screens:
- An agent list and editor. Plain forms over the agent calls. No canvas needed.
- A workflow editor. A canvas of steps and connections, with property panels generated from the schemas above.
- A test pane. A live conversation with the draft agent, highlighting each step as the event feed reports it, and the run’s trace afterwards.
Around those, you own:
- Your users and your mapping from each customer account to its Wetel workspace and credentials.
- Checks in your own forms. For example, make sure a JSON template a user types is valid JSON before you save it, so the mistake shows up in the form rather than in a conversation later.
- Fairness between your users. Wetel’s rate limits count per client IP address. If your backend serves many customers from one server, they all share that server’s allowance, so add your own per-user limiter in front.
- A usage view, if you want one. Wetel reports each workspace’s language-model usage for a month, in US dollars and credits, through a JWT-only query; presenting it to your customers is up to you.
- Templates, versioning screens, team permissions in your product. Useful polish, not prerequisites.
Some things you do not need to rebuild. Outbound calls from workflow steps are already checked against private and internal network addresses on Wetel’s side, whatever your editor lets through. A connector’s key is stored by reference and never returned, so build your connector screen as write-only from the start: re-enter to rotate, never display.
What is not offered?
Plainly, so you can plan around it:
- A setting that rebrands Wetel’s own dashboard. The docs describe white-labelling as building your own front end on this API, which is what this post covers. There is no configuration screen that reskins Wetel’s dashboard for you.
- Billing for your customers. Wetel reports usage per workspace and prices your own plan in credits, billed to you by invoice for now. It has no per-token or per-call price list, no prepaid wallet, and no way to bill your customers. If you charge your customers for AI employees, that pricing and invoicing is yours. See Pricing & Plans.
- Single sign-on into Wetel for your own staff. Your product’s login is yours to run; the docs describe no single sign-on into Wetel itself.
- Self-service workspace creation, as above.
- Builder operations with an API key. Editing needs a JWT.
For ready-made roles a workspace owner can hire instead of building an agent from scratch, see hiring a role instead of building one; for who can do what inside one workspace, see workspace owner or member.
Related reference docs
- Admin API Overview: agents, the three-call workflow lifecycle, tools and the live run feed
- Build Your Own Admin Panel: the three screens, the canvas, live debugging and what not to rebuild
nodeConfigSchema/nodeConfigSchemas: the per-step JSON Schemas and what they will not tell youaiGenerateWorkflow: drafting a graph from a description, nothing saved until you callupdateWorkflow- Authentication: JWT, API key and session token, and what each unlocks
- Multi-Tenancy: one workspace per customer and the gateway pattern
- Admin Resources: notifications, media library and other platform-management operations for deeper tooling
- Rate limiting: which limits apply and why they count per client IP
To start on your own panel, read the Admin API Overview.