Getting Started
Create Your First Mesh
Welcome! In a few minutes you’ll have a Mesh that can process a structured request and respond intelligently. We’ll start with a simple “analyze an issue” example and layer in concepts as you go.
You’ll go through these phases:
- Prep
- Add a Model Provider and Profiles
- Create Your First Model Set
- Pick Your Path
- Create Your First Agent (Manual Path)
- Assemble a Mesh
- Try It in Converse
- Invoke the Mesh (Conversation API)
- Iterate Productively
- Optional: Grounding Early
- Add Tools (When Ready)
Relax, we’ll walk through each phase.
1. Prep
Sign in at https://app.partite.ai with a Google or GitHub account. You will use the hosted cloud UI for all steps in this guide. Self-hosted modes exist, but they add infrastructure work - skip them until you need full data residency.
Have at least one foundation model API key ready (OpenAI, Anthropic, Google or Amazon Bedrock). That’s all you need for now.
2. Add a Model Provider and Profiles
In the UI, create a Model Provider (e.g. “OpenAI” or “Anthropic”). Paste credentials / keys.
Tip: Name providers clearly, especially if you’ll mix vendors.
A new provider has no profiles. Add them yourself. A Model Profile is a specific model + its tuning (temperature, reasoning mode, etc.). Press Add model profile and pick a model from the provider’s model list. Then press Test to check that the profile works.
Create one or two profiles:
- A cheaper / faster one (for simple support or routing tasks).
- A more capable one (for heavier reasoning).
3. Create Your First Model Set
Now create a Model Set:
- Choose a default profile.
- Add a rule or two (e.g. “if agent complexity >= medium use advanced_model”). Rules match on tags + complexity so you don’t hardcode model choices inside prompts.
At this point you understand providers and cost/right-sizing. Perfect moment to choose your build path.
4. Pick Your Path
You now have the foundation pieces (Provider + Model Set). Decide how you want to assemble the rest:
Path A: AI-Powered Creator (fast prototype)
- Choose New mesh, then Create automatically.
- Describe your goal (“Analyze bug reports and summarize likely root cause”).
- It generates Agents, a Mesh, and wiring.
- The creator may ask you questions on the job page. Answer them to improve the result.
- Skip ahead to the Try it in Converse section and refine later.
Path B: Manual (more control)
- Continue below to handcraft an Agent and Mesh.
- Recommended if you want to learn the concepts deeply.
If you tried Path A and want to learn internals, you can still read on - everything is editable.
5. Create Your First Agent (Manual Path)
Think of an Agent as a focused specialist. Keep scope tight.
Configure:
- Identity: Optional persona (“You are a calm diagnostics assistant”).
- Task instructions: Required. Write clear, outcome-focused text (“Diagnose the reported issue. Ask for missing reproduction steps only if essential.”).
- Input schema: Set it in the Designer. Start small. Example:Every field needs a description - this really helps output accuracy.
{ "type": "object", "properties": { "issueText": { "type": "string", "description": "Raw user report text" }, "environment": { "type": "string", "description": "Runtime or OS if known" } }, "required": ["issueText"] } - Model complexity: Low, Medium or High. The Model Set rules use it to pick a model.
- User interaction: Two toggles. Send thinking messages and Send progress messages. Turn them on to see the agent work in real time.
- Tools: Skip for now. Later, add an MCP connection, a Particle or a Client task. To let the agent ask the user questions, add the
ask_questionclient task under Tools. - Skills and Memory: Optional. See Skills and the Memory guide.
Each edit versions the Agent automatically. Use complexity + tags to influence Model Set rules later.
6. Assemble a Mesh
Create a Mesh and associate the Model Set you built earlier (so rules apply). Then work through the draft editor:
- Add intent. An Intent is an entry point.
- Name the Intent (for example
AnalyzeIssue). - Add Responses. Each Response has a name, response instructions and a schema. Example schema:
{ "type": "object", "properties": { "summary": { "type": "string", "description": "High level explanation" }, "probableCause": { "type": "string", "description": "Most likely root cause" }, "nextStep": { "type": "string", "description": "Recommended action" } }, "required": ["summary"] } - Pick the agent you just created, or create a new one. Use the agent version picker to choose the Agent Version.
- (Optional) Add Call Links later as you decompose tasks (“LogSearcher” agent, “FixGenerator” agent).
- (Optional) Add Transfer Links for router patterns (“Classifier” passes control to “Security” vs “Performance” agent).
Labeling: Edits modify the draft. When happy, apply a label like “prod”. Future updates happen on the draft until you label again (“staging”, test, then re-label to “prod”).
7. Try It in Converse
Test the Mesh in the UI before you write any code. See Converse.
- On the mesh settings page, press Converse.
- Pick the Intent.
- Fill in the form. It comes from the Intent’s input schema.
- Watch the thinking and progress messages as they arrive.
- If the agent calls a Client task, answer it inline.
- Press Open trace to see what the agent did.
8. Invoke the Mesh (Conversation API)
You’re ready to talk to it from code. See the Conversation API guide for all details. Two styles:
Start a conversation and send the first message:
curl -H "Authorization: Bearer <API_KEY_TOKEN>" -X POST \
"https://api.partite.ai/conversations?wait=30" \
-H "Content-Type: application/json" \
-d '{
"mesh": {"id": "<MESH_ID>", "draft": true},
"intent": "AnalyzeIssue",
"input": {
"issueText": "App crashes when saving after upgrade to v2.3",
"environment": "macOS 14"
}
}'"draft": true runs the draft. Once you label a version, use "version_label": "prod" instead. input is the Intent input. wait=30 holds the answer until the request ends, for up to 30 seconds. The answer has the conversation id and the request, with its status and its response.
To see thoughts, progress and tasks live, add -N -H "Accept: text/event-stream" to the same call. To stream a request that already started:
curl -N -H "Authorization: Bearer <API_KEY_TOKEN>" \
https://api.partite.ai/conversations/<conversation_id>/requests/<request_id>/eventsTo find the conversation later, add "external_id": "ticket-1234" to the body. When memory is in use, add "tags": [{"name": "user", "value": "alice"}].
Event types you may see: started, thinking, message, task, task_response, response, error, cancelled. response / error / cancelled are terminal.
9. Iterate Productively
Healthy loop:
- Review responses (and trace data if available).
- Tighten instructions (remove fluff; clarify edge cases).
- Evolve schema (add a field only when repeatedly missing data).
- Split responsibilities (new Agent + Call Link) if output feels unfocused.
- Adjust Model Set rules (promote complex agents to stronger models).
- Label draft → test → promote.
- Run a rubric on a bad trace to get findings. See Evaluations.
Rollback = re-target a previous label or Agent Version. No guesswork.
10. Optional: Grounding Early
If certain fields must be factually sourced (IDs, metrics, brief facts), add x-partite-grounding-config to those schema properties. In the schema editor’s Designer mode, the grounded feature adds this configuration to a field. The grounding configuration enforces citations without stuffing raw data into prompts. Start small; enable on the highest risk fields.
11. Add Tools (When Ready)
Tools let agents:
- Fetch logs
- Search code
- Pull metrics
- Generate reports and patches
Choose from these:
- MCP connections: use HTTP, or use Tunnel for a server that has no public address.
- Particles: sandboxed WebAssembly tools that run inside the mesh.
- Skills: instructions an agent loads when a task calls for them.
Associate only the tools relevant to the Agent’s purpose. Fewer tools = clearer reasoning.
Common Early Pitfalls (And Fixes)
| Pitfall | Fix |
|---|---|
| Giant input schema day one | Start with 1–2 essential fields; grow deliberately |
| Vague instructions | State objective + constraints + when to ask user |
| Single “do everything” agent | Decompose after first signs of diffuse output |
| Hardcoding model everywhere | Use Model Set matching rules (tags and complexity) |
| Missing field descriptions | Add them; models rely heavily on them |
Troubleshooting Quick Checks
- Getting empty outputs? Verify required schema fields are present in request.
- Strange model choice? Inspect Model Set rule order.
- Overlong responses? Tighten Response descriptions.
- Not seeing thinking events? Turn on Send thinking messages on the agent and check the model profile’s Thinking display.
- Agent does not remember earlier turns? Attach an Interaction Profile with Conversation history. Set a Memory Store with Ingest conversations on the mesh.
Next Steps
When the basics feel solid:
- Add a second Agent for code fixes.
- Introduce a router agent via Transfer Links.
- Enable grounding on “probableCause”.
- Add memory so agents learn from earlier conversations.
- Run the Mesh on a schedule.
- Add a webhook handler to trigger analysis automatically on new issue events.
- Add a route to split traffic between two mesh versions for a canary.
- Measure quality with evaluations. See also the Evaluations reference.
- Handle questions from agents in your own app with Client Tasks and AG-UI.
- Export config to Terraform for review / promotion workflow. See Configuration As Code.
You now have the full lifecycle: Configure -> Label -> Invoke -> Observe -> Refine -> Expand.
Enjoy building; your mesh will grow naturally as you slice responsibilities into focused agents. Reach out if you hit friction.