Prompt Syntax
Creating effective prompts is at the heart of getting great responses from your AI. In PromptCue, you can build prompts that go beyond plain text by combining saved prompts and dynamic variables. This guide explains how each element works and shows you real-world examples of how to craft a meaningful, powerful prompt.
Basic Prompt Elementsβ
At its simplest, a prompt can be a sentence or question composed of text and numbers. For example:
What are the latest trends in artificial intelligence?
This basic prompt works well for straightforward queries. However, to unlock more advanced functionality, PromptCue allows you to integrate other elements directly into your prompt.
Inserting Saved Promptsβ
You can quickly insert saved prompts into your text by typing /
(a forward slash). When you do this, a dropdown appears above the chatbox with all your saved prompt titles. Selecting one automatically appends its full text into your prompt.
Example: Combining a Saved Promptβ
Imagine youβre writing a prompt to analyze a news article on AI. You might start with:
I need an analysis of the latest AI news:
When you type /
, a dropdown appears. You select the saved prompt "Summarize News Article". Instead of just inserting the title, the full text of the saved prompt is appended. For example, if "Summarize News Article" has the saved prompt text:
Summarize the key points, major statistics, and potential impacts of this article.
The final prompt becomes:
I need an analysis of the latest AI news: Summarize the key points, major statistics, and potential impacts of this article.
This method helps ensure consistency and saves you time when you want to reuse effective prompt formulations.
Using Prompt Variablesβ
Prompt Variables let you inject dynamic data into your prompt. To use them, type __$
(double underscore followed by a dollar sign). This action triggers a dropdown with your saved variables. Selecting a variable inserts its value into the prompt.
Example: Combining Prompt Variablesβ
Suppose you want to generate a project report that includes your current budget details. Your base prompt might be:
Generate a comprehensive project report, including financial analysis for a budget of
When you type __$
, the dropdown appears, and you select the variable projectBudget whose value might be $150,000
. The prompt is then updated to:
Generate a comprehensive project report, including financial analysis for a budget of __$projectBudget
The variable would be replaced with the value (in this case $150,000) when you send the prompt. This dynamic insertion ensures that your prompts are always updated with the latest information.
Putting It All Togetherβ
By combining plain text, saved prompts, and prompt variables, you can build sophisticated and dynamic prompts tailored to your needs. Here's an integrated example:
I need a detailed market analysis report. Start by reviewing the following article: /Summarize News Article. Then, include insights on current spending trends for a budget of __$projectBudget.
In this prompt:
- The initial text sets the context.
- Typing
/
lets you append the complete saved prompt for summarizing a news article. - Typing
__$
enables the insertion of the dynamic variable value forprojectBudget
.
This method creates a powerful, flexible prompt that drives more accurate and context-aware responses from your AI model.
Next Stepsβ
-
Practice and Experiment:
Try creating various prompts by combining static text, saved prompts, and dynamic variables to see how the AI responds. -
Explore More Features:
Learn about other functionalities such as Prompt Library and Prompt Variables to further enhance your interactions. -
Launch PromptCue:
Start a new chat and put your dynamic prompt skills to work!
By mastering Prompt Syntax, you empower yourself to create highly tailored, dynamic prompts that fully leverage the capabilities of PromptCueβensuring you get the most precise and relevant AI responses every time.