# Best practices

1\. The Base System Prompt is the most important part of your AI chatbot. These are the rules, or guardrails that tell the AI how to behave. If you are getting strange responses, simply update the Base System Prompt in order to correct that behavior.

2\. The Knowledge Base is the second most important part of the AI chatbot. Good data in equals good responses out. The same can be said for bad data. Try to make sure that any data that you upload to the knowledge base is relevant to what a user might ask about. If you are getting wrong answers, or the chatbot doesn’t know the answer, enable Debug Mode to see what data is being sent to OpenAI to generate the response.

a. PDFs and Websites will often have a lot of extra, non-relevant information added that can confuse the AI chatbots.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lety.gitbook.io/lety-docs/best-practices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
