Prompts
Last updated
Last updated
Prompts, in the Dynamiq platform, are reusable templates. Each prompt is versioned - versioning enables prompt reusability while preserving previous versions, which can be crucial for testing and iterative development.
To add a new prompt:
Navigate to the Prompts page and select Add new prompt.
Fill out the form on the right panel:
Name: Enter a descriptive name for the prompt.
Specify the prompt’s template in the Prompt section. You can choose between two views:
Visual: A user-friendly interface for inputting text.
Raw: JSON format for more complex prompt structures.
Add a new prompt message by clicking Add message
Each message must have a Role:
User: Represents input coming from the user.
Assistant: Represents AI assistant.
System: Represents system message.
The Content section may include not only regular text but also contain dynamic fields. To use dynamic fields using {{...}}
syntax (e.g., {{question}}
), which will be replaced at runtime based on provided data.
Once all fields are filled out, click Create to save the prompt. The system will automatically assign a version v1
to the new prompt. Future updates to the prompt will result in new versions (e.g., v2
), which allows tracking changes over time and maintaining backward compatibility.
To update an existing prompt:
Navigate to the Prompts page.
Find the prompt you wish to update and click the Edit icon next to it. This will open the prompt's configuration panel on the right side.
Modify necessary fields.
Once your updates are complete, click Update to save the changes. This action will automatically create a new version (e.g., from v2
to v3
) and store it in the Versions tab.