Email Writer Agent

The Email Writer agent generates high-quality, professional email responses grounded in search results. It ensures outbound or reply emails are traceable to source documentation -- company policies, knowledge bases, or trusted references -- rather than relying on the LLM's general knowledge. This agent is typically used as a final step after Search, Web Search, or Combine Search Results agents in email-centric workflows.

Use Cases

  • Writing customer-facing or internal email responses grounded in retrieved documentation.
  • Generating professional email replies to inquiries using company knowledge bases.
  • Automating email drafting in support, sales, operations, or partner workflows.
  • Ensuring email communication is accurate, consistent, and traceable to source material.

Inputs

InputTypeRequiredDescription
queryTextWithSourcesYesThe email context or question that needs to be addressed.
search_resultsSearchResultsYesRelevant search results used as source material, from Search, Web Search, or Combine Search Results agents.
user_instructionsTextNoGuidance for tone, emphasis, or formatting preferences.

Outputs

OutputTypeDescription
response_with_sourcesTextWithSourcesA fully composed email with subject line (8 words max), greeting, concise body (3-6 sentences), closing, and signature block.

Configurations

ParameterDescriptionDefault
model_configFusion model configuration used to generate the email response.Required
process_entire_documentWhen enabled, processes entire documents instead of only matching segments from search results.None

How to Use This Agent

Customer support email automation:

chat_trigger -> knowledge_search -> email_writer -> send_email -> workflow_output

Known Limitations

  • Timezone handling: Date and time references use the system default timezone and do not account for user-specific timezone preferences.

Last updated: Jul 3, 2026