Responding to repetitive business emails often requires recalling similar past messages and constraints such as scheduling conflicts. This example demonstrates how to store short email summaries in a semantic index and use them to generate context-aware reply drafts.
Define a sample incoming email that will serve as the first message:
Create a graph that (1) summarizes the new email, (2) drafts a reply using prompts grounded in the semantic index, and (3) appends the new summary-email pair back into the index: