1. Overview
  2. Creation
  3. How to Setup Dynamic Variables

How to Setup Dynamic Variables

Introduction

Welcome to the SyncWin Copilot! This article will guide you through the process of setting up dynamic variables in your prompts. Dynamic variables allow you to customize your prompts further, making them adaptable for various scenarios. By the end of this guide, you'll know how to add and configure dynamic variables in your prompts, enhancing their functionality and effectiveness.

Prerequisites

Before you start, ensure that you have:

  • The SyncWin Copilot extension is installed and active in your browser.
  • A basic understanding of how to create a prompt, including adding a title, description, and content.

Instructions

Step 1: Open the SyncWin Copilot

  • Click on the SyncWin Copilot icon in your browser toolbar to open the extension.

Step 2: Add or Edit a Prompt

  • Select the option to either add a new prompt or edit an existing one.

Step 3: Enclose Variable Names

  • In the "Prompt Content" textarea, type your prompt content and include dynamic variables by enclosing the variable name in double curly braces.
    • For example, if your variable is "your_name," write it as {{your_name}}.

Step 4: Create Dynamic Variables

In the Copilot, you can create dynamic variables to enhance your prompts. Each variable field type serves a specific purpose, allowing you to collect different types of user input. Here’s how to set up each field type:
  1. Select Field Type:
    • Start by choosing the appropriate field type based on the kind of input you want to collect:
      • Text Field: For single-line text inputs (e.g., names).
      • Textarea: For multi-line text inputs (e.g., descriptions).
      • Radio Buttons: For single-choice options (e.g., selecting one option from a list).
      • Checkbox: For multiple-choice selections (e.g., selecting several options).
  2. Add a Label Name:
    • Provide a clear label for your variable. This label will be displayed to users, indicating what information they should enter.
    • Example: For a blog outline prompt, you might label a field as “Blog Topic.”
  3. Add Placeholder Text:
    • Enter placeholder text that gives users a hint about what to input in the field. This text disappears once the user starts typing.
    • Example: In the “Blog Topic” field, you might use “Type here...” as placeholder text.
  4. Set Maximum Length:
    • For Text Fields and Textareas, specify the maximum number of characters allowed. This ensures that user inputs remain concise and manageable.
    • Example: Set a maximum length of 100 characters for a blog topic.
  5. Add Options for Radio or Checkbox Fields:
    • If you selected Radio Buttons or Checkboxes, list the available options. You can separate each option with a comma or place each on a new line.
    • Example: For a “Tone of Voice” checkbox, you might list options like:
      Professional
      Conversational
      Casual
  6. Make the Variable Required:
    • If you want to ensure that users fill out this variable before proceeding, check the box labeled “Required.” This will prompt users to complete this field before they can save or submit their prompt.

Example: Blog Outline Generator

Here’s how you would set up variables for a Blog Outline Generator prompt:
  • Field Type: Select "Text Field" for the Blog Topic.
  • Label Name: Enter "Blog Topic."
  • Placeholder Text: Type "Type here..." as placeholder text.
  • Maximum Length: Set it to 100 characters.
For the Tone of Voice, you would set it up like this:
  • Field Type: Select "Checkbox."
  • Label Name: Enter "Tone of Voice."
  • Options: Professional, Conversational, Casual
By following these steps, you'll create effective dynamic variables that enhance user interaction with your prompts, making them more functional and tailored to specific needs.

Step 5: Save Your Prompt

  • Click the “Save” button to store your prompt with its dynamic variables.

Step 6: Use Your Dynamic Variables

  • Whenever you need to use your prompt, open it from your saved prompts list, fill in the required fields for each dynamic variable, and insert it into your preferred AI chatbot.

Tips and Warnings

  • Tip: Be consistent with naming your variables. Use clear and descriptive names to make it easier to remember what each variable represents.
  • Warning: Ensure that you always enclose variable names in double curly braces; otherwise, they will not function correctly.

Troubleshooting/FAQs

  • Q: What if my dynamic variables are not working?
    • A: Double-check that you have enclosed each variable name in double curly braces (e.g., {{variable_name}}). If they are still not functioning, try re-saving the prompt.
  • Q: Can I edit my dynamic variables after saving?
    • A: Yes! You can go back to any saved prompt and modify the dynamic variables as needed.

Summary

In this article, you learned how to set up dynamic variables in the SyncWin Copilot. You can enhance your prompts by enclosing variable names in double curly braces and creating fields for user input. This flexibility allows you to tailor your prompts for different scenarios effectively.

Next Steps

Explore additional features of SyncWin Copilot or refer to our documentation for more tips on customizing your prompts. If you have any questions or need further assistance, feel free to reach out! This structured guide is designed for non-technical users, ensuring clarity and ease of use while providing essential information for setting up dynamic variables effectively.

Related Articles


Was this article helpful?