--- title: "Agent Definition Template" slug: "agent-definition-template" updated: 2026-08-19T10:53:13Z published: 2026-08-19T10:53:13Z canonical: "help.mozenda.com/agent-definition-template" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Agent Definition Template Handling multiple agents with similar designs can be tiresome and prone to errors. Agent Definition Templates in Mozenda reduce this complexity by offering a central configuration model for designing and managing agents effectively. **What exactly are Agent Definition Templates?** Agent definition templates are pre-fabricated reusable agent structures. You don't need to build every agent from scratch; you can develop a template with some logic, structure, and behavior and apply it anywhere you need. Think of templates as blueprints: once defined, you can generate many agents from the same base, each with their own variations. **When To Use Templates?** Use agent definition templates when: - You develop numerous agents with the same logic but different inputs (e.g., different product categories or URLs). - You want the same structure among agents. - You need to implement centralized changes to multiple agents. - You want to reduce setup time for repetitive tasks. Examples: - Scraping product listings from multiple retailers with similar page layouts. - Scraping price information from category pages with identical structures. **How to Create an Agent Template** 1. Build your agent in Agent Builder Configure the agent as you normally would, including the logic, steps, and structure you want to reuse. ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Build%20your%20agent.JPG) 2. Add Template Variables Replace specific values (like URLs, keywords, etc.) with variables in this format: %VariableName% 3. Save As Template Go to *File > Save As New Template* Get your template a clear name for future reference. ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Save%20as%20New%20Template.JPG) ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/Save%20as%20New%20Template3.JPG) **How to use a Template to Create a New Agent** 1. Navigate to *File > New From Template* ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/New%20from%20Template.JPG) 2. Select the template you created. ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/New%20from%20Template%202.JPG) 3. Define the *override values* for the variables (e.g. different input lists, categories or domains) 4. *Save the agent* — it now inherits the full structure of the template but can function independently. **How Template Changes Work?** Any **updates to a template** will be reflected in all agents inheriting from it. These changes are applied only when the agent: - Is **restarted** - Is **resumed from a paused state** - Encounters an **error and retries** This ensures **live agents are not interrupted**, while still staying up to date with template changes.