n8n workflow template · 30 nodes · Redis
Conversational Interviews with AI Agents and n8n Forms is a free n8n workflow template that starts when someone submits an n8n form and works with Redis, Groq and Google Sheets. It has 30 nodes, 5 of them AI nodes (Chat Memory Manager, Window Buffer Memory, AI Agent and Groq Chat Model). To run it, you add your own credentials for Google Sheets OAuth2, Groq API and Redis.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Learn more about the AI Agent node
An AI interviewer is an interesting take on a role traditionally understood as expensive and time-consuming - both in preparation and execution. What if this could be handed off to an AI/LLM, which could perform when it suits the interviewee and ask a never-ending list of open and follow-on questions for deeper insights?
This is what this AI researcher agent is designed to do! Upon activation, a loop is created where the agent generates the question and the user answers via the form node. This continues until the user asks to stop the interview.
Learn more about the n8n Form node
The interview is no good if we can't record the answers somewhere for later analysis! Using n8n form node to capture the answer, we can simple push our new question and answer pair to our Redis session to build our transcript before continuing the loop with the agent.
Read more about the Chat Manager node
Once the AI/LLM detects the user wishes to end the interview (which is done by the user explicitly saying in the form), then the loop breaks and we conclude the interview session and displaying the confirmation screen.
For this demo, I've created a special confirmation screen which also displays the transcript. This is done by redirecting to a webhook URL. If you don't need this, feel free to change this to "show completion screen" instead.
For this demo, we want to show a customised completion screen with transcript so it's necessary to redirect to a webhook (see step 6).
Read more about the Google Sheets node
For easier data-sharing, we can have the workflow upload the session messages into data analysis tools for our team members.
For this demo, Google Sheets is an easy option. We'll pull the entire session out of redis and upload the messages one by one to sheets.
Read more about the Webhook Trigger
This step is totally optional. For a nicer user experience, I use this webhook mini-flow to display the user's transcript for the completion screen. It works by capturing the session_id in the webhook's url and searching for it in our redis database. If a match is found the transcript is fetched and rendered into a webpage using the HTML node and returned to the user. If no match is found, a 404 message is displayed instead.
If you're on n8n cloud, you may want to copy the webhook url generated here and use it as the form ending's redirect url.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
This template enables automated AI/LLM powered user interviews using n8n forms and an AI agent where the question and answers are recorded in a google sheet for later analysis. A powerful tool for any researcher.
Redis is a fast key-value datastore which makes it ideal for sessions. This ensures the interview flow stays snappy between questions. For my live demo, I used Upstash.com which has a generous free tier.
Join the Discord or ask in the Forum!
Learn more about the form trigger node
The form trigger node will be our entry point into this workflow and to start, we'll just ask for the user's name to start the interview. Our session storage will be using Redis via Upstash.com (you can use regular redis btw!) - whichever way, this ensures a highly scalable system able to handle many users.
The 30 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us