Purpose and guidelines
This is the most important section. It defines what the agent is, who it’s for, and how it should behave. The agent reads this at the start of every conversation. Write a clear, focused description. The more specific it is, the more consistently the agent performs.Example — customer support agent
Example — internal knowledge base assistant
Example — sales qualification agent
Rules
Rules are constraints the agent refers to in every conversation. Each rule carries anenforcement level — hard (Must — never violate), default (Should — follow unless there is a clear reason not to), or soft (Prefer — lean this way when otherwise free to choose).
Use rules for things the agent must never do, must always do, must do under specific conditions, or should prefer to do.
Example ruleset — healthcare information agent
Example ruleset — financial assistant
Examples
Few-shot examples teach the agent your preferred response style and format. Each example is a user message paired with the ideal response. Add 3–5 examples covering your most common and most important scenarios. Examples have a larger impact on response quality than almost any other setting. If the agent’s output isn’t what you want, writing better examples is usually the most effective fix.Example pair — concise factual answer
Example pair — handling an unknown question
Example pair — empathetic escalation
Hooks
Hooks let you trigger external actions when events happen during a conversation. Each hook fires an HTTP POST to a URL you configure.Example — logging conversations to a webhook
Configure Post-query with your endpoint URL. Agentheya POSTs:Example — syncing new contacts to a CRM
Configure On user message and detectmessage_index === 0 in your endpoint to fire only on the first message per session:
Data
Upload files the agent can reference during conversations. The agent searches them automatically when a user asks a relevant question. Good files to upload:- Help documentation — FAQs, troubleshooting guides, how-to articles
- Product specifications — feature lists, pricing tables, technical specs
- Policies — terms of service, refund policy, SLA documents
- Reference material — product catalogs, rate cards, size guides
.md), plain text (.txt), CSV, JSON, DOCX.
Files are split into two visibility scopes:
- Internal data — only the agent can access these (source material for answers)
- Public data — can be offered to users as downloads via the
present_public_filetool
Details
The Details page controls the public identity and access settings for your agent.Name and description
The agent name is part of its public URL (agentheya.com/agent/{name}). You can rename the agent at any time — the URL updates immediately.
The description is a short line shown on the agent’s chat page. Write something that sets expectations for visitors: what the agent does, who it’s for.
Contact email — a support address shown to subscribers when they need to reach you directly. If left blank, no contact email is displayed.
Visibility
Switching visibility takes effect immediately. The URL does not change.
For hidden agents, paste an email address in the invite field and send an invitation. The recipient gets a link to create an account and access the agent.