For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
AcademyContact SalesHelp CenterDashboard
DocumentationAPI ReferenceIntegrationsAdministrationChangelog
DocumentationAPI ReferenceIntegrationsAdministrationChangelog
  • Get Started
    • Introduction
    • Authentication
  • Resources
    • Custom Variables
    • Dynamic Prompt Injection
    • Outbound Number Pooling
    • Timezones
  • Platform API
LogoLogo
AcademyContact SalesHelp CenterDashboard
On this page
  • Use Cases
  • How to Use Custom Variables
  • Example of Custom Variables
Resources

Custom Variables

||View as Markdown|
Was this page helpful?
Previous

Dynamic prompt injection

Next
Built with
You can inject dynamically custom variables into your prompt.

Custom Variables allow you to dynamically inject data into your prompts, enhancing the capabilities and relevance of your 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 or company-specific information.

Use Cases

  • Personalization: Tailor responses based on user-specific information (e.g., name, role, preferences).
  • Contextual Relevance: Provide responses that are relevant to a specific business or operational context.
  • Dynamic Content: Update the content of prompts based on changing variables.

How to Use Custom Variables

  1. Define Custom Variables: Identify the key pieces of information that are relevant to your use case. For example, 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 enables the Assistant to access and utilize this data in its responses.
  3. Integrate with Synthflow Dashboard: Ensure that these variables are also recognized and managed within your Synthflow Dashboard for consistency and control.

Example of Custom Variables

1"custom_variables": [
2 "Company: Synthflow",
3 "Role: Sales Specialist"
4]