https://retellai.com/?utm_source=discord&utm_medium=seo logo
I want All the Information To create the AI Person...
# ❓・ai-evy-support
g
@AI Evy I want All the Information To create the AI Persona in the Global prompt and I want to add Rules and Conditions and I want it to read Knowledgebase answer accurate and Properly I need all the Information for that
a
Thanks for tagging me @gk. I'll look through relevant sources and get back to you shortly.
### Answer To create an AI persona in the Global Prompt with rules, conditions, and knowledge base integration, here's what you need to configure: ## Global Prompt Configuration The global prompt is where you specify the agent's persona, identity, and guardrails [(1) ]() . This set of text will be available in every node and will influence all response generation . For conversation flow agents specifically, use the global prompt for your agent's overall personality, tone, and universal rules [(2) ]() . ## Knowledge Base Integration You can configure the knowledge base through the
knowledge_base_ids
parameter [(3) ]() [(4) ]() :
Copy code
json
"knowledge_base_ids": [
  "kb_001",
  "kb_002"
]
[(3) ]() To control how the knowledge base retrieves information, configure the
kb_config
settings [(3) ]() [(4) ]() :
Copy code
json
"kb_config": {
  "top_k": 3,
  "filter_score": 0.6
}
[(3) ]() The
top_k
parameter determines how many relevant documents to retrieve, and
filter_score
sets the minimum relevance threshold . ## Rules and Conditions in Conversation Flow For step-by-step logic, questions, and transitions, use conversation flow nodes rather than the global prompt [(2) ]() . You can structure your agent with nodes like this [(3) ]() :
Copy code
json
"nodes": [
  {
    "id": "start",
    "type": "conversation",
    "instruction": {
      "type": "prompt",
      "text": "Greet the customer and ask how you can help them."
    }
  }
]
## Best Practice Division - **Global Prompt**: Agent's overall personality, tone, and universal rules [(2) ]() - **Conversation Flow Nodes**: Step-by-step logic, questions, and transitions - **Global Nodes**: Actions available anytime (e.g., "transfer to human") You can read more about knowledge base configuration in the [Knowledge Base Guide]() referenced in the documentation [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[2] CONVERSATION FLOW AGENT - GLOBAL PROMPT](https://discord.com/channels/1186424376300679209/1371534043157500025) [[3] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[4] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) ​