Custom Variables

Inject dynamically data into the prompt to personalize AI interactions.

ℹ️ Note: You can dynamically inject custom variables into your prompt to enhance contextual relevance.


Overview

Custom Variables allow you to dynamically inject data into your prompts, enhancing the capabilities and relevance of your AI Assistant. By integrating custom data fields via API requests, you can tailor the Assistant's responses to specific contexts, such as a user's role, company-specific information, or any dynamic business-related data.


Use Cases

Personalization

  • Tailor responses based on user-specific information (e.g., name, role, preferences).

Contextual Relevance

  • Provide responses that align with a specific business or operational context.

Dynamic Content

  • Update the content of prompts based on changing variables to keep interactions fresh and adaptable.


How to Use Custom Variables

  1. Define Custom Variables

    • Identify key pieces of information that should be dynamically inserted into the assistant’s responses. Examples include user roles, company names, or specific settings.

  2. Add Variables to API Request

    • Incorporate these custom variables into your API request as a JSON object. This allows the Assistant to access and utilize this data in its responses.


Example API Request with Custom Variables

Última actualización