System Prompt & Instructions
The personality, tone, and context the AI uses in every message. This is the foundation of how your agent sounds and behaves.
Conversation Stages
An ordered flow of stages (introduction, discovery, qualification, etc.) that guide the conversation toward a goal.
Guardrails
Safety limits like max messages, inactivity timeouts, forbidden topics, and escalation triggers that keep conversations on track.
Knowledge Bases
Documents and data the agent can reference via RAG to answer domain-specific questions accurately.
Prerequisites
Before configuring an agent you need:- A Naturalead account with
agent_config:editpermission (roles: owner, integrator, or ai_architect) - An API key with
agent_config:editscope - Optionally, uploaded knowledge base documents if you want RAG-powered answers
Step-by-step walkthrough
Templates give you a proven starting point. Fetch the available templates and apply one to pre-populate your agent configuration.
The
apply-template endpoint returns a configuration object without saving it. You can modify it before creating the agent.Use the template output (or build from scratch) to create a new agent. At minimum you need a
name, systemPrompt, and goal.The system prompt is sent to the LLM as the system message for every conversation turn. It defines the agent’s persona, context, and behavioral rules. The instructions field provides additional guidance that supplements the system prompt.
Stages define the flow of the conversation. Each stage has a prompt that guides the LLM, transition criteria that determine when to move on, and optional branching via
nextStages.maxTotalMessagesinactivityTimeoutMinutesforbiddenTopicsescalationTriggersSetting
maxTotalMessages too low (below 10) may prevent the agent from completing the qualification flow. Test with real conversations before deploying to production.Knowledge bases give your agent access to company-specific information via RAG (Retrieval-Augmented Generation). Upload documents first through the Knowledge Base API, then attach them to your agent.
You can attach multiple knowledge bases to a single agent. The agent searches across all attached bases when retrieving context for a response.
Before deploying your agent in a campaign, test it using the built-in playground. Navigate to Bot > Playground in the dashboard, select your agent, and simulate a conversation. The playground shows the full LLM input (system prompt + RAG context + conversation history) so you can debug prompt behavior.
Monitoring agent performance
Once your agent is live, track its effectiveness using the stats endpoint:| Field | Description |
|---|---|
totalConversations | Total conversations using this agent |
qualifiedLeads | Number of leads the agent qualified |
qualificationRate | Percentage of conversations resulting in qualification |
responseRate | Percentage of conversations where the lead replied |
Next steps
Launch a Campaign
Use your configured agent to run automated outreach at scale.
Knowledge Base API
Upload and manage documents for RAG-powered agent responses.
Agent Config API Reference
Full API reference for all agent configuration endpoints.
Roles & Permissions
Understand which roles can create and edit agent configurations.