Skip to main content
Follow these best practices to build effective agents and deliver great experiences with Beni.

Agents

Give your agents a focused, specific purpose. Avoid vague instructions — the more precise you are about what the agent should and should not do, the more consistent its behavior will be.
Create separate agents for separate use cases rather than building one agent that does everything. Focused agents are easier to maintain and perform better.
Use the conversation preview to test your agent thoroughly before making it live. Try edge cases and unexpected inputs to see how it handles them.

Knowledge Base

Regularly review and update your knowledge base documents. Outdated information leads to incorrect agent responses.
Agents retrieve content more reliably from documents with clear headings, concise sections, and consistent formatting.
Avoid adding documents that are not relevant to your agent’s purpose. Irrelevant content can confuse retrieval and degrade response quality.

Security

Assign team members only the permissions they need. Use Roles & Permissions to create scoped roles rather than giving everyone admin access.
Regularly rotate your API keys and revoke any that are no longer in use to reduce exposure.