How to use google doc as tool for AI to use when generating email content

I’m trying to create our first workflow for our HR department. The idea is to handle any benefits related questions by adding the benefits category to the email when it comes in and then generating a reply draft. The AI should use a google doc that consists of a number of FAQs as it’s knowledge source. I have the google doc node set up as a tool for the AI but when I test the workflow, the draft that is created doesn’t seem like the AI is using the google doc. I also don’t see that node get highlighted as it runs through the process. So, is this not how I should set up the google doc as the knowledge data source? If not, how would I do it? Thanks!

Hi,

The reason that it isn’t running is because of the LLM. With tool usage, it’s the LLM that must choose if it should be called ore not. The fix for this is to add to the prompt, when the tool should be ran. It can be either be done with the system prompt ore message prompt.

Also using a better model helps with this.

Perfect, thank you very much. I added to the message prompt to tell the LLM to use the google doc tool which is a list of FAQs and the generated draft was perfect. Thanks again!

1 Like

No worries, glad to help :slight_smile: