I want to build a simple n8n template. On command, the AI agent should search internet for all dance classes nearby, next send them email enquiring about facilities and prices, next collate that data in a word document, next create a table comparing the facilities, ratings and prices of these dance schools. Am I on the right track (pic attached)? And what should be the next step? What should I write in HTTP request form to remove the error? And for email, it should be addressed to whom? I want the agent to find out the emails from different websites and mail them. Please guide on next steps to complete the workflow.
I think I understand what you want to achieve. Well I have some ideas;
The logic is;First node searches google → second node scrapes URL’s received from last node → a code node to extract all emails → LLM node receives those e-mails and decides which one to use → ‘Send email and wait for response’ node to send an e-mail with the AI output as message → Response is carried into an AI Agent node which then the Agent does the work you said above.
It may seem complex but it’s very simple. Of course you have to add a node that keeps track of what sites you already scraped and what e-mails you already contacted to avoid repetition (e.g. Google Sheets).
Important:
Since you need the response of the e-mail you sent, make sure not to use ‘Send E-mail’ node as a tool. Use specifically ‘Send e-mail and wait for response’ node.
Webscrapers are already AI-driven and they are paid. I tried finding a free or at least cheap service some time ago but I couldn’t, so I made my own webscraper. The only bad thing about it is that I have to enter the sites manually.