UnieAI Studio

Create and configure an agent

Set the name, instructions, model, execution engine, and assets, with explicit save instructions and verification steps.

An agent combines instructions, an answering model, an execution engine, and available assets. Test the smallest configuration first, then add KBs or tools one at a time. To build a document assistant alongside its KB, use the complete walkthrough.

1. Prepare the current project or personal account and answering model

  1. Choose a personal account or project.
  2. Open Token Factory → UnieAI Model Zoo.
  3. Choose a text-generation model. KB, SQL, API, and MCP use also requires Tool Calling.
  4. Click Use base model and adopt it into the current project or personal account.
  5. Confirm availability in My Models.

Checkpoint: the model can be selected during agent creation. Embedding and speech-to-text models serve different purposes and cannot replace a general answering model.

 Find an answering model with Tool Calling.  Click Use base model.
Find an answering model with Tool Calling. Click Use base model. Click to enlarge
Model details and usage entry: check capabilities, pricing and workspace.
Model details and usage entry: check capabilities, pricing and workspace. Click to enlarge

2. Open creation and define the agent

  1. Open Agent Builder → My Agents → Create agent.
  2. Under Agent definition → Name, enter support-agent.
  3. In Instructions, describe the role, evidence to use, and expected behavior.
FieldExampleCheck
Namesupport-agentCreation requires 3–50 letters, digits, dots, underscores, or hyphens
InstructionsThe example belowInstructions do not attach assets automatically
ModelAn adopted Tool Calling modelInspect capability and price, not just a similar name
You are a product support documentation assistant. Answer in English.
Search the attached knowledge base before answering product questions.
Answer from retrieved evidence and cite the filename and available page number.
If information is missing, explain what is unavailable instead of guessing prices or specifications.
 Enter your own agent name.  Paste system instructions.  Select the adopted answering model.
Enter your own agent name. Paste system instructions. Select the adopted answering model. Click to enlarge

3. Choose the model source

Model Zoo

  1. Select Model Zoo in the Model card.
  2. Choose the model adopted in step 1.
  3. If adoption is required, add it to My Models before creating the agent.

External model

Select the creation page's Agent (base URL + key + name) external-connection option and fill in:

FieldValue
Base URLThe provider's OpenAI-compatible API base, commonly ending in /v1; not the full /chat/completions URL
API keyThe external service's key, rather than a Studio Default Key
Model nameThe exact model identifier accepted by that service

The external model must support the tool-calling format your agent needs. If unsure, complete the first exercise with Model Zoo.

4. Select data sources and create

  1. Scroll to Data sources.
  2. For documents, select Knowledge Base and check a KB with indexed documents.
  3. If no assets exist yet, create the agent first and attach them later.
  4. Keep advanced options such as Memory at their initial settings for the first test.
  5. Check the current project or personal account, model, and sources in the Agent config summary.
  6. Click Create agent at the bottom and wait for Setup.

Checkpoint: you can reopen it from My Agents. A draft or an error on the creation page means creation has not finished.

 Select the tutorial KB.  Click Create Agent.
Select the tutorial KB. Click Create Agent. Click to enlarge

5. Know which edits need Save

Open My Agents → your agent → Setup.

ChangePersistenceVerification
Name, instructions, answering model, external connectionClick Save at the bottomSaved notification; values survive reopening
Select/deselect KB, SQL, skill, API, or MCP assetsSaves immediatelySelection and connected count remain; no error
Execution engineSaves when selectedNew engine appears; complete any confirmation dialog
Long-term memory switch under BehaviorSaves immediatelySwitch keeps the selected state
Model settings behind the gearEdit settings → Save changesSuccess notification

An asset saving successfully does not mean edited instructions have also been saved. Resolve Unsaved changes before leaving the page.

Edit the system instructions under Definition on the agent setup page, then save and reopen to verify.
Edit the system instructions under Definition on the agent setup page, then save and reopen to verify. Click to enlarge

6. Choose an execution engine

EnginePurposeFirst configuration
DefaultFollows the platform settingInspect the effective engine; administrators can change it
UnieAI HarnessPlanning, repeated tools, long-conversation compactionUse when available and required
UnieAI Harness LiteLower-latency multi-round tools and question answeringA suitable starting point for document questions
Plain modelNo tool callsDo not choose it when testing attached KBs or tools

The engine and answering model are separate. A tool engine still needs a Tool Calling model; a capable model still needs actual asset attachments.

 Choose UnieAI Harness Lite so the agent can call connected KBs and tools.
Choose UnieAI Harness Lite so the agent can call connected KBs and tools. Click to enlarge

7. Finish the attached assets

  1. Choose an asset type in Assets.
  2. Select an existing asset or create one there.
  3. Confirm a newly created asset appears and is checked.
  4. Open the asset and finish its data or connection configuration.
  5. Return and verify attachment.
AssetWork still required
Knowledge baseUpload documents, finish indexing, test search
DatabaseConfigure connection, tables, allowed operations, and verify queries
SkillWrite procedures and applicability; a name alone is not a skill
API toolConfigure operations, parameters, authentication, and test requests
MCP serverFinish connection/authentication and verify tool discovery

Checkpoint: the asset works independently. An empty attached KB cannot supply evidence.

 Verify the tutorial KB is checked in Assets; these changes save immediately.
Verify the tutorial KB is checked in Assets; these changes save immediately. Click to enlarge

8. Test before enabling broader use

  1. Click Try in Playground and confirm the selected agent.
  2. Start a new conversation.
  3. Test an in-document question, a missing-information question, and one requiring a tool.
  4. Verify answers, sources, and available tool events.
  5. Use the upper-right gear for Model settings or Access when changing generation settings, enabled state, or permissions.
  6. For code access, copy Model ID from Call this agent, then follow the API quickstart.

Use the agent model ID/API name in the API's model field. Calling the base model directly does not apply this agent's instructions or assets.

 Copy the agent model ID.  Open Playground and verify this agent is selected.
Copy the agent model ID. Open Playground and verify this agent is selected. Click to enlarge
Select the tutorial agent in Playground, ask a question and check its document sources.
Select the tutorial agent in Playground, ask a question and check its document sources. Click to enlarge

Troubleshooting

ProblemCheck in order
Creation failsName format → model adoption → project or personal account creation rights → error message
Instructions disappearBottom Save action and any failure notification
A KB is missingProject or personal account → KB permission → refresh the list
Attached KB never usedIndependent search → Plain model engine → Tool Calling capability
External model failsBase URL, external key, exact model name, tool compatibility
API differs from PlaygroundProject or personal account, key permissions, agent ID, history, request parameters

Continue with setup navigation, system instructions, and RAG setup.