Make a new document from a template (this is the easy part)
Populate the new document with content based on the contents of Simple Memory, which contains:
Form data
Q&A from an agentic interview session with the human who filled out the form
I wasn’t sure if this was an agent, with the new document given as a tool, or whether the population of the doc needed to be more explicit. I was hoping I could pass the document template and the memory contents to an LLM and just instruct it to fill out the document, following certain rules. Is this possible, and what would that look like in a graph?
Hey brother I think you’re thinking about it in the right way. I would try exactly what you’re saying. Make a workflow that gathers the necessary data to fill out the template. Pass the template instructions and data required to fill it out within the prompt.
Have the tool be google docs, and set it to create a doc (or whatever applies to ur usecase)
All the content is in simple memory–can’t I just attach the memory to the agent and reference that in the prompt somehow? Or do I need to retrieve it first and pass it into the prompt via json per your example? Seems like that should be unnecessary…
I think in that case, you should just pass the template (with detailed instructions) and the LLM should be able to figure it out from its attached simple memory. Try it and LMK how it goes brother!
Okay, but this is a forum designed to help people learn HOW to do these things. Can you be more specific about the best way for me to “just pass the template (with detailed instructions)…” What does that mean?
I’m looking for suggestions and expertise here, not cheerleading. Thanks.
This agent only knows what you’re passing in on the left. In my case it’s a chat node. What you want to do is, in plain english (whether in a prompt, or conversations or whatever else you’re passing in) explicitely describe to the Agent what you want to accomplish and how to do it.
In my example. I want it to send emails so my chat looks like
In your case you’ll have Google Docs or something similar as a tool. And my best guess is it’s receiving some form and writing to a doc?
You would give it some explicit instructions in your prompt saying “You just received a form input, go ahead and add the name and email fields to my Google Doc.”
Why don’t you share your workflow here and maybe someone can help you get further along
Sorry @jimmytuckeraparavi, my comment was totally rude–please accept my apology. I was frustrated with something else, and let it boil over into my comment.
Thanks for the additional info. I know how to use agents generally, and have an existing one that has a conversation–that’s what populates the memory. So, for the second agent I have these things:
Memory populated with chat interaction and form data that was entered into the user prompt of the first agent
The form data itself is also available as json
A Google Doc template that I want the second agent to make a copy of, and then populate. It could also just be a Markdown file–that’s probably fine, too, and perhaps easier.
My workflow has a lot of irrelevant stuff in it, and I haven’t tried creating this second agent yet, so I’m not sure if it would be helpful to post it.
My main question is what is appropriate to put in as a tool, and what should be pulled in as content in either the user or system prompt instead. I assume the data to use to populate a template should be in a prompt. Should only the template be attached as a tool? How would I reference things in memory?