Skip to main content
This guide covers the anatomy of workflow templates and best practices for creating effective, reusable research workflows.

Template Anatomy

A workflow template consists of:

Basic Template Structure

Input Types

rp_entity_id

Use for Bigdata entity identifiers (companies, ETFs, etc.):
Entity IDs can be found using the Knowledge Graph API.

string

Use for free-form text input:
Example prompt using string inputs:

Content Filters

Restrict which sources the research uses:

Filter by Document Type

Filter by Source

Exclude Specific Content

Available Document Types

Research Plans

Add a research plan for structured, step-by-step execution:
When a research_plan is provided, the agent follows your predefined steps for structured, predictable output. Without a plan, the agent dynamically determines research steps based on your prompt.

Expected Output

The prompt controls what the agent researches. The expected_output field controls what the final report looks like: its section headings, ordering, table schemas, and tone. Setting it is the reliable way to get consistent, comparable reports across runs and across different companies.
Keep the two fields as separate concerns. Research instructions belong in the prompt; report structure belongs in expected_output. Mixing them is the most common cause of reports that drift in format from one run to the next.
expected_output describes the output format only, so it cannot contain {{ placeholders }}. Placeholders belong in the prompt, where they are matched against expected_input. A template with a placeholder in expected_output is rejected on create and update.
Be explicit about anything you want standardized. To force a section to always render as a table, give it a fixed column schema. To drop a recurring intro sentence, say so directly (e.g. “Present results directly, without an introductory line”). Unspecified formatting is chosen by the model per run.

Complete Example

Here’s a complete template for M&A transaction analysis:

Creating Templates via API

Best Practices

  1. Clear, specific prompts: Include numbered sections or bullet points for structured output
  2. Appropriate input types: Use rp_entity_id for entities to enable entity-aware search
  3. Content filters: Restrict to relevant document types for focused research
  4. Research plans: Add plans for complex, multi-step analyses
  5. Expected output: Define expected_output when you need consistent report structure across runs; keep format out of the prompt
  6. Descriptive names: Use clear template names for easy identification
  7. Documentation: Add descriptions explaining the template’s purpose

Next Steps

Research Plans

Learn how research plans affect execution

Example Templates

Ready-to-use financial analysis templates