Locusive uses an AI-powered autonomous agent to answer your users' questions, analyze data, and perform actions within your product. For this, Locusive may need access to your various tools and data sources, such as databases or Salesforce, through integrations. While these integrations provide Locusive with a foundational understanding of your data, sometimes it requires additional context to understand how to navigate your data structures effectively. This is where Reference Guides come in.
Reference guides allow you to supplement the AI's knowledge about your tools and data sources, offering detailed insights that the system can use to provide more accurate responses to users' queries.
Whenever Locusive needs to handle a user's request, it reviews the available integrations in your account to identify the appropriate actions and data sources for fulfilling that request. If an integration has an associated reference guide, Locusive uses that guide to better understand the context and relationships within your data. This helps the AI to:
Currently, reference guides are available for Salesforce and Database integrations. You can create a reference guide by navigating to the Integrations page, selecting the relevant integration, and clicking on the Reference Guide tab.
If your database has intricate relationships between tables, multiple foreign keys, or special rules around data usage, a reference guide helps Locusive understand these nuances. For example, if your system has a hierarchy of entities like accounts, workspaces, and programs, and Locusive needs to navigate through these relationships to find user information, a guide can provide the AI with a blueprint for constructing accurate queries.
Best Practice: Map out the hierarchy, including foreign key relationships, and detail any rules for querying. For instance, always filter certain tables (like accounts
) unless explicitly instructed not to.
In some cases, particular data in your system may have unique requirements for how it should be handled. For example, if certain columns or tables should never be aggregated or should always be treated as unique, this information is crucial for Locusive to understand. In a scenario where goals are recorded as free-form text and should not be aggregated, your reference guide should clearly specify these rules.
Best Practice: Identify special data types or columns that need unique treatment (e.g., free-form text, unique identifiers) and specify how they should be queried or not queried.
If your system includes a set of defined items—such as skills, product categories, or geographic regions—it's important to include these in your reference guide. For instance, providing the complete list of skills in a skills
table or all the time zones within a database helps the AI understand the scope of each category. It can also guide the AI on how to group or filter data based on these categories.
Best Practice: Include complete lists for any standardized categories or classifications in your data, such as skills, time zones, or product types. These lists help Locusive provide context-aware suggestions and analyses.
If certain tables in your database should be joined selectively or avoided in certain contexts, these rules should be part of your guide. For example, you might have data that should only be accessed under specific circumstances, such as internal-use tables or ones that require filtering by user permissions.
Best Practice: List tables that require special consideration when joined or queried. Provide examples or rules for when and how to join them appropriately.
In some cases, data stored in your system might not be immediately clear to users. For example, survey responses stored as text arrays (e.g., {Agree}
) need context to be meaningful. Your reference guide can help by providing background information on how to interpret these responses, ensuring that Locusive provides complete and comprehensible answers to users.
Best Practice: Document how different data types should be presented in responses, especially if they involve complex structures like text arrays, JSON objects, or encoded data.
Here's a checklist of key elements to consider when building a reference guide for your integration:
Database Structure and Relationships
Describe the hierarchy of tables, primary and foreign keys, and relationships between entities. For instance, specify how to navigate from an account
to a user
by detailing the joins required between tables like accounts
, workspaces
, programs
, and users
.
Query Rules and Constraints
Provide rules for filtering, aggregating, or joining tables. Highlight any constraints such as "always filter by account unless specified otherwise" or "never aggregate goals."
Standardized Lists and Classifications
Include all predefined categories, such as skills, time zones, product types, or other standard lists that may be used in queries. This helps Locusive understand the full range of possible values and how to apply them in responses.
Special Table Context
Detail any tables that have specific use cases or access restrictions, and how they should be queried. For example, highlight tables that are only for internal use or that require special conditions for access.
Contextual Explanations for Users
Include explanations for complex data types or structures that Locusive should incorporate into user-facing responses. Ensure that any derived or processed data (like survey responses) is accompanied by an explanation of how to interpret it.
If you're not sure what to put in your reference guide, here are some categories to consider:
By taking the time to craft a detailed reference guide, you can significantly improve Locusive's ability to understand your data and perform accurate, context-aware queries and actions, providing a seamless experience for both your team and your customers.
This example guide provides clear details on relationships, constraints, best practices for querying, and contextual guidance that can significantly improve how Locusive handles complex requests for the fictional FitnessPro database.