Prompt templates
A prompt template is a message you write once and reuse, such as a request for a follow-up email to a customer or for a monthly summary of an Excel file. You save your own templates in Settings and insert them in a chat by typing @. Parts that change each time, such as a customer name or a quote number, become variables that you fill in before the text goes into the message field. Managers can also publish templates for the whole company.
Where templates come from
| Template | Who creates it | Who can use it | Label in the @ list |
|---|---|---|---|
| Personal template | You, under Settings > Prompt templates | Only you | Personal |
| Company template | A manager of your company, in the Manager Console under Templates, or your administrator for your company | Every member of your company | Your company's name, for example Mustermann GmbH |
| Instance-wide template | Your administrator or Intra AI | Everyone on the instance | Global |
Which company and instance-wide templates you see depends on your organization. If nobody has published any, the @ list shows only your personal templates. You can't change company or instance-wide templates yourself.
Open your templates
- Click your name at the bottom of the sidebar.
- Under Account, select Settings.
- In the App group, select Prompt templates.
The tab is called My Prompt Templates and reads "Personal templates visible only to you. Type @ in chat and pick one under Prompts." Every user has this tab.
Each template is a card with its title, the first two lines of its text, and the pencil and trash icons. If the template has variables, a badge with a {} icon next to the title shows how many.
Enlarge figureIf you have no templates yet, the tab says "No personal templates yet." and "Type @ in chat and pick a global template under Prompts." Company and instance-wide templates (the hint calls both "global") don't appear in this tab. You find them only in the @ list in chat.
Create a template
- On the Prompt templates tab, select Create template. A form titled New template opens.
- Under Title, enter a name you will recognize in the @ list, such as "Quote follow-up email". The title can have up to 200 characters.
- Under Content, write the text exactly as you would type it into the chat. The content can have up to 10,000 characters. If it is longer, Save shows "Use at most 10000 characters." and nothing is saved.
- For parts that change each time, add variables (see the next section).
- Select Save. The template appears in the list and in the @ list in chat.
Cancel closes the form without saving. Only one form is open at a time, so Create template is hidden while you create or edit a template.
If the title or the content is empty, the form shows "Title and content are required." and nothing is saved.
Add variables
A variable is a placeholder in double curly braces, such as {{customer}}. When you use the template, Intra AI asks you for a value and puts it in place of the placeholder.
There are two ways to add one:
- Type it into Content, for example
Write a short follow-up email to {{customer}} about quote {{quote_number}}. - Place the cursor where the variable should go and select Add variable. Intra AI inserts
{{var1}}(then{{var2}}and so on) at the cursor.
Every variable in the content gets a row under Variables:
- The first field is the variable's name. To rename it, click the name, type the new name, then press Enter or click outside the field. Intra AI changes every placeholder with that name in the content. Press Esc to discard the change.
- Label (optional) is the text you see in place of the name when you fill in the template, for example "Quote number".
- Default value (optional) prefills the field. You can still change it each time.
- The trash icon (Remove variable from content) removes the variable and deletes all of its placeholders from the content.
Enlarge figureRules for variable names:
- Use only letters (A to Z, upper or lower case, without accents or umlauts), digits and underscores, up to 80 characters. A name can also start with a digit or an underscore.
- If you rename a variable to a name with a space, a hyphen, an umlaut or another character that isn't allowed, or to a name longer than 80 characters, the row shows "Letters, digits, underscore. Must start with a letter." and keeps the old name. Despite its wording, the message doesn't mean the first character has to be a letter.
- Two variables can't share a name. Renaming one to a name already in use shows "Another variable already uses this name."
- Text in double braces that doesn't follow these rules, such as
{{customer name}}or{{Straße}}, is not a variable. It gets no row and stays in the text as typed. - Spaces right inside the braces, as in
{{ customer }}, are allowed. The placeholder still counts as the variablecustomer. If you rename it, Intra AI writes the new name without the spaces, such as{{client}}. - If the same placeholder appears more than once, it is one variable. You fill it in once, and Intra AI uses the value everywhere it appears.
A template can have up to 20 variables. A label can have up to 200 characters, a default value up to 2,000 characters. The form doesn't stop you while you type. Only Save checks these limits, and if one is exceeded, nothing is saved:
- More than 20 variables: "Use at most 20 entries."
- A label that is too long: "Use at most 200 characters."
- A default value that is too long: "Use at most 2000 characters."
Tip: Give each variable a label. The label is what you read when you fill in the template, so "Quote number" is easier to work with than quote_number.
Use a template in chat
- In the message field, type @ at the start of the field or after a space. A list with the heading Categories opens: Integrations, Agents, Skills and Prompts. In a project chat, Files also appears, at the top. A category without entries is not shown.
- Select Prompts, or keep typing a word from the template's title or text to search all categories at once. A search across all categories shows at most three templates. To see every match, select Prompts first and then type.
- Pick a template with the mouse, or with the arrow keys and Enter.
Enlarge figureA template without variables goes straight into the message field and replaces the @ you typed. Any other text in the field stays.
A template with variables first opens a dialog with the template's title and the line "Configure variables":
- Fill in each field. A field is titled with the variable's label, or with its name if it has no label, and shows the placeholder, such as
{{customer}}, beside it. Default values are already filled in. - Select Apply prompt or press Enter.
Apply prompt stays grayed out until every field has a value, including fields whose default value you cleared. Cancel or the X closes the dialog without inserting anything. The @ and the word you typed after it are removed either way.
Enlarge figureIntra AI puts the finished text into the message field but doesn't send it. Read it, change it if you need to, and send it as usual. Writing messages covers the rest of the message field.
Note: The suggestions under Example prompts on the chat's start screen are not prompt templates. Intra AI suggests them, and you can't edit them in Settings.
Use a template in agent instructions
If you build agents, you can also insert a saved template into an agent's instructions. In the agent builder, select From library, pick a template and fill in its variables. If the field already has text, choose Replace or Append. The steps are in Build an agent.
Edit or delete a template
To edit a template, select its pencil icon (Edit “…”, with the template's title). The card turns into the form with Title, Content and Variables (without the New template heading), filled with the template. Make your changes and select Save, or Cancel to keep the old version. The change applies the next time you pick the template. Text you already inserted into a chat stays as it is.
To delete a template:
Warning: You can't restore a deleted template. Conversations in which you used it are not affected.
- Select its trash icon (Delete “…”). The dialog "Delete template?" names the template and says "This template is permanently removed."
- Select Delete. The message "Template “…” deleted." confirms it.
Company templates for managers
Managers can publish prompt templates that every member of the company can pick under Prompts. You need the manager role and the right to manage templates. Your provider decides which areas the manager role covers, so if your console has no Templates tab, you don't have this right. The manager console explains how to open the console and which sign-in security it requires.
- Click your name at the bottom of the sidebar and, under Organization, select Manager Console.
- Open the Templates tab. The Prompt templates section lists your company's templates. If there are none yet, it says "This tenant has no prompt templates yet."
- Select Create template. The New template form has the same Title and Content fields and the same Add variable and Variables section as a personal template.
- Select Save. The template is available to every member of your company right away, labeled with your company's name.
Enlarge figureUse the pencil icon to edit a company template and the trash icon to delete it. The delete dialog asks "Delete global template?" and warns "This template is permanently removed for every user in the organisation." (The dialog calls it a global template; it means your company's template.) Deleting it removes it from every member's @ list.
Note: Company templates are visible to everyone in your company, so don't put personal or confidential details into them.
On a dedicated instance, the console can show a Prompt templates tab instead of Templates. Templates saved there are labeled Global and reach everyone on the instance. Whether you can create them or only read them depends on the rights your administrator gave you.
The Agent templates section on the Templates tab is for agents that members submitted as templates. It is explained in Sharing and publishing agents.
Troubleshooting
| What you see | What it means and what to do |
|---|---|
| "Title and content are required." | The title or the content is empty. Fill in both and select Save again. |
| "Letters, digits, underscore. Must start with a letter." | The new variable name has a space, a hyphen, an umlaut or another character that isn't allowed, or is longer than 80 characters. Rename it, for example to quote_number. |
| "Another variable already uses this name." | Pick a different name, or remove one of the two variables. |
| "Use at most 10000 characters.", "Use at most 200 characters.", "Use at most 2000 characters." or "Use at most 20 entries." after Save | The content, a label or a default value is too long, or the content has more than 20 variables. Shorten the text or remove variables, then select Save again. Nothing was saved. |
| A placeholder in the content gets no row under Variables | The text between the braces isn't a valid name, for example {{customer name}}. Change it to {{customer_name}}. |
| Apply prompt is grayed out | At least one field is empty. Fill in every field. |
| The template doesn't appear under Prompts | Check that you saved it. Then select Prompts in the @ list and type a word from its title or text. A search across all categories shows at most three templates, so the one you want can be missing there. Company templates appear only after a manager saves them. |
| Create template is missing | A template is open for editing or creation. Select Save or Cancel first. |
| No Templates tab in the Manager Console | You don't have the right to manage templates, or your provider hasn't enabled it. Ask your administrator. |
| A company template contains an error | Only a manager with access to Templates can change it. Ask one of your managers. If your managers can't find it under Templates, your administrator created it for your company; ask your administrator. |