Now that we have our project, let’s create our first prompt. We’ll use the interactive create command, which guides you through setting up all the required metadata.
In your terminal, run -
Copy
plb create
Answer the entries as required. For most, you can just press Enter to accept the default value.
Let’s say prompt name is ‘Customer-support-agent’. The create command creates a new file named prompts/Customer-support-agent.v1.0.0.yml.
Hurray! You have created your first prompt. But note that its just a template and the actual content and other metadata should be filled by the user.
Here are two templates for your reference — one is blank, and the other is a completed customer support agent prompt template with content and metadata -
Empty Template (Created by Default)
Copy
# PROMPT IDENTITY# --------------------id: prm_524a1cb9cccd4129b57db8b2f3d9a291name: "Customer-support-agent"version: "1.0.0"# DOCUMENTATION# --------------------description: ""namespace: []tags: []# OWNERSHIP & STATUS# --------------------status: "Draft"author: "ananya868 <ananya8154@gmail.com>"last_update: "2025-06-27T15:00:00.000000+00:00"# CONFIGURATION# --------------------intended_model:model_parameters: temperature: 0.7# NOTES & LINKS# --------------------linked_prompts: []notes: ""# - - - 💖 THE PROMPT 💖 - - -# ---------------------------------# NOTE - Comments inside the prompt are automatically removed on prompt call.default_inputs: user_input: "Sample Input"template: | You are a helpful assistant. -- Now you can start writing your prompt template! -- How to use this template: - To input a value: ${user_input} - To add a comment: {# This is a comment #} Create awesome prompts! :)
Filled Template
Copy
# PROMPT IDENTITY# --------------------id: prm_524a1cb9cccd4129b57db8b2f3d9a291name: "Customer-support-agent"version: "1.0.0"# DOCUMENTATION# --------------------description: Create a short persuasive email for small tech business owners to promote a customer support agent product.namespace: [Customer-Support, AI-tool]tags:- email- persuasive- small business- customer support- automation# OWNERSHIP & STATUS# --------------------status: "Draft"author: "ananya868 <ananya8154@gmail.com>"last_update: "2025-06-27T15:00:00.000000+00:00"# CONFIGURATION# --------------------intended_model: "gpt-4.1"model_parameters: temperature: 0.7 max_tokens: 1024# NOTES & LINKS# --------------------linked_prompts: [Customer-monitor-agent]notes: "Do not push to production."# - - - 💖 THE PROMPT 💖 - - -# ---------------------------------default_inputs: product: "AI customer support agent"template: | Write a short, persuasive email to small tech business owners promoting an '{{product}}'. Keep the tone friendly and professional. Follow this structure: 1. Subject Line: Eye-catching and relevant (e.g., '24/7 Support Without Hiring More Staff'). 2. Opening: Greet the reader and mention a common support challenge. 3. Body: Highlight how the product improves response time, reduces workload, and boosts customer satisfaction. Add a brief success story or stat. 4. Call to Action: Invite them to book a demo or try it out. 5. Closing: Sign off warmly with contact info.
The create command builds an empty template. Open the prompts/Customer-support-agent.v1.0.0.yml file in your code editor. Find the template: key and replace the placeholder content with the filled example above or write your own !
LLM configuration is required for this step. While the toolkit itself is not LLM-dependent, some features rely on it. Please configure LLM before proceeding.
Let’s execute our prompt using the run command. The command will see the required variables and ask you for them.
It will run the prompt against a LLM of your choice (llm needs to be set as a configuration). Checkout LLMs to find a list of supported models.
In your terminal, run -
Copy
plb run Customer-support-agent --execute
It will render the filled prompt and the output generated using the specified LLM.