Multimodal Chat Assistant with GPT-4o for Text, Images, and PDFs
Chat with thing
This n8n template lets you build a smart AI chat assistant that can handle text, images, and PDFs β using OpenAI's GPT-4o multimodal model. It supports dynamic conversations and file analysis, making it great for AI-driven support bots, personal assistants, or embedded chat widgets.
π How it Works
The chat trigger node kicks off a session using n8n's hosted chat UI. Users can send text or upload images or PDFs β the workflow checks if a file was included. If an image is uploaded, the file is converted to base64 and analyzed using GPT-4o's vision capabilities. GPT-4o generates a natural language description of the image and responds to the user's question in context. A memory buffer keeps track of the conversation thread, so follow-up questions are handled intelligently. OpenAIβs chat model handles both text-only and mixed media input seamlessly.
π§ͺ How to Use
You can embed this in a website or use it with your own webhook/chat interface. The logic is modular β just swap out the chatTrigger node for another input (e.g. form or API). To use with documents, you can modify the logic to pass PDF content to GPT-4 directly. You can extend it with action nodes, e.g. saving results to Notion, Airtable, or sending replies via email or Slack.
π Requirements
Your OpenAI GPT-4o API key Set File Upload on the chat
π Use Cases
PDF explainer bot Internal knowledge chat with media support Personal assistant for mixed content
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Build a PDF-Based RAG System with OpenAI, Pinecone and Cohere Reranking
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow prov...
Reusable and Independently Testable Sub-workflow
Reusable and Independently Testable Sub-workflow This n8n workflow provides a standardized structure for building and te...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments