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

Prev Next

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.
  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.

How to use a Template to Create a New Agent

  1. Navigate to File > New From Template

  2. Select the template you created.

  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.