Conversational Interviews with AI Agents & n8n Forms

n8n AI Data Management Content Creation

Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.

This n8n template combines an AI agent with n8n's multi-page forms to create a novel interaction that allows automated question-and-answer sessions. One of the more obvious use-cases of this interaction is what I'm calling the AI interviewer.

A form trigger is used to start the interview, and a new session is created in Redis to capture the transcript.

An AI agent is then tasked to ask questions to the user regarding the topic of the interview. This is set up as a loop so the questions never stop unless the user wishes to end the interview. Each answer is recorded in our session set up earlier between questions.

When the user requests to end the interview, we break the loop and show the interview completion screen. Finally, the session is then saved in a Google Sheet, which can then be shared with team members and for the purpose of data analysis.

You'll need to be on an n8n instance that is accessible to your target audience. Not technical enough to set up your own server? Try out n8n cloud and instantly deploy the template!

Remember to activate the workflow so the form trigger is published and available for users to use.

Requirements:

- Groq LLM for AI agent. Feel free to swap this out for any other LLM.

- Redis(-compatible) storage for capturing sessions.

The next step would be adding tools! AI interviews with knowledge retrieval could definitely open up other possibilities, e.g., an onboarding wizard generating questions by pulling facts from an internal knowledge base.

Tools used: OpenAI, Google Sheets, Redis

Download the workflow template (JSON)

Original tutorial

Want this running in your business? KOBA42 builds and operates automations like this one.