How to add prompts from the prompt library to your apps & agents
1. Adding a prompt to an app
This is part of the broader process of creating an app using a knowledge base. To understand the complete app creation flow, refer to the app creation guide.
To add a prompt from the prompt library during app setup:
Click on the ‘Apps’ tab in the ZBrain Builder interface.
Select the ‘+ Create’ button and enter all the details of the app in the ‘App Details’ section. Click ‘Next’.
Go to 'Configure Bot'.
In the ‘System Instructions’ section, click ‘Library’.

Select ‘Add from Prompt Library’, and choose the prompt template you want.

Optionally, check ‘Import Prompt Settings’ to carry over the prompt’s model, temperature, top‑p, max tokens, etc and then click ‘Use’.

This method reuses existing prompts, keeping consistency and saving setup time.
2. Adding a prompt to an agent
This is one segment of the comprehensive agent creation process. To understand the entire workflow, please refer to Creating custom AI agents | ZBrain Documentation.
To use a prompt from the prompt library while defining an agent’s flow:
From the ZBrain Builder, go to the ‘Agents’ tab and start creating a new agent.
After filling out the required details, proceed to the 'Define Flow' step.

Inside the visual flow builder, click on the ‘+’ button to add a new tool/action in the sequence.
Search for ZBrain and select ‘Ask AI Model’ from the list of available actions.

In the side panel that appears, configure the model, input variables, and other options as needed.
Under the ‘Prompt Library’ dropdown, select the prompt template you want to use.

This inserts a predefined prompt into your agent’s logic without writing it from scratch.
The rest of the steps for agent setup, like connecting outputs, configuring inputs, and managing access, remain the same.
Benefits of using the prompt library
Standardized reuse
Maintain consistency by using the same prompts in different apps and agents.
Reduces errors
Using pre-tested prompts lowers the chances of logic or formatting issues.
Faster setup
Avoid rebuilding prompts, select and plug them in.
Last updated