Template Anatomy
A workflow template consists of:Basic Template Structure
Input Types
rp_entity_id
Use for Bigdata entity identifiers (companies, ETFs, etc.):
string
Use for free-form text input:
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:Expected Output
Theprompt 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.
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.
Complete Example
Here’s a complete template for M&A transaction analysis:Creating Templates via API
Best Practices
- Clear, specific prompts: Include numbered sections or bullet points for structured output
- Appropriate input types: Use
rp_entity_idfor entities to enable entity-aware search - Content filters: Restrict to relevant document types for focused research
- Research plans: Add plans for complex, multi-step analyses
- Expected output: Define
expected_outputwhen you need consistent report structure across runs; keep format out of theprompt - Descriptive names: Use clear template names for easy identification
- 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