Best Practices
Some basic tips for working with Ana
This doc provides some basic recomendations on how to prompt Ana in her two main interfaces:
-
The Chat Interface (Includes Slack Chats)
Ana Chat Best Practices
-
🤖 Treat Ana as you would a coworker: Have interactive conversations to clarify or refine requests, just as you would with a real analyst.
-
🧩 Break complex requests into smaller steps: Language models can get overwhelmed when given too many steps at once.
-
❓ Ask follow-up questions: This helps uncover deeper insights or correct misunderstandings along the way.
-
📈 Request charts and visualizations: These can be easy ways to understand data and insights, as well as verify Ana’s assumptions.
-
❗ Expect occasional misunderstandings or assumptions: Ana might interpret questions differently, so be prepared to rephrase or specify your request when needed.
-
🔄 If a chat gets too long or isn’t going well, start fresh: Ana has access to many tools and may stumble when handling too many things at once. Sometimes, the best solution is to start a new chat.
TextQL Agents Best Practices
-
📝 Write comprehensive prompts: TextQL agents are designed for deep asynconous analysis, triggered on an event or schedule. Unlike Ana chats, which are designed to expect followup messages, TextQL Agents generally assume that you have you have provided a comprehensive descrition of the task (at a high level), so that they can continually work without the need to ask for clarifying questions. To that end, Agents tend to perform best with long prompts, that include as many steps, actions, and corner cases as the user is aware of. After an Agent completes its action, you will have the option of continueing the agent conversation with followup messages through the chat interface.
-
🕵️♀️ Preview your analysis before activating the agent: Previewing agent runs allows you to quickly iterate and refine your prompt, ensuring your agent is able to reliably execute your desired task. Generally, we recomend running atleast 3 previews before activating your agent.
-
🎁 Attach any relevant datasets you’re aware of: If you believe that an Agent will regularly use a partiular dataset of interest, you should attach that dataset explicitly to the agent at setup time. This helps reduce ambiguity and streamline the Agent’s planning at runtime. If you aren’t aware of any such datasets, or you have low farmilirarity with your companies datawarehouse, you can safely disregard this step/ TextQL Agents have the ability to search your datawarehouse at runtime to identify the data of interest relevant to your query, it just might take longer to get to the result.