Skip to main content

Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o

Workflow preview

Workflow preview
100%
Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Medical Q&A Chatbot for Urology using RAG with Pinecone and GPT 4o This template provides an AI powered Q&A assistant for the Urology domain using Retrieval Augmented Generation (RAG). It uses Pine...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by HoangSP.

Original n8n.io source

1.1 Workflow description

Title
Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o
Workflow name
Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o

Medical Q&A Chatbot for Urology using RAG with Pinecone and GPT-4o

This template provides an AI-powered Q&A assistant for the Urology domain using Retrieval-Augmented Generation (RAG). It uses Pinecone for vector search and GPT-4o for conversational responses.

🧠 Use Case

This chatbot is designed for clinics or medical pages that want to automate question answering for Urology-related conditions. It uses a vector store of domain knowledge to return verified responses.

πŸ”§ Requirements

  • βœ… OpenAI API key (GPT-4o or GPT-4o-mini)
  • βœ… Pinecone account with an active index
  • βœ… Verified Urology documents embedded into Pinecone

βš™οΈ Setup Instructions

  1. Create a Pinecone vector index and connect it using the Pinecone credentials node.
  2. Upload Urology-related documents to embed using the Create Embeddings for Urology Docs node.
  3. Customize the chatbot system message to reflect your medical specialty.
  4. Deploy this chatbot on your website or link it with Telegram via the chat trigger node.

πŸ› οΈ Components

  • chatTrigger: Listens for user messages and starts the workflow.
  • Medical AI Agent: GPT-based agent guided by domain-specific instructions.
  • RAG Tool Vector Store: Fetches relevant documents from Pinecone using vector search.
  • Memory Buffer: Maintains conversation context.
  • Create Embeddings for Urology Docs: Encodes documents into vector format.

πŸ“ Customization

You can replace the knowledge base with any other medical domain by:

  • Updating the documents stored in Pinecone.
  • Modifying the system prompt in the AI Agent node.

πŸ“£ CTA

This chatbot is ideal for clinics, medical consultants, or educational websites wanting a reliable AI assistant in Urology.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Answer questions with a vector store

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1

Block 7 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.1

Block 8 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 9 - 🟒 Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - 🧠 AI Agent Logic

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - πŸ€– GPT-4o Model

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - 🧠 Session Memory

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - πŸ“š Vector Store Search

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - 🧩 Pinecone Search

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - 🧬 Embeddings

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o
Complexity advanced
Nodes 15
Categories Support Chatbot, AI RAG
Author HoangSP
Published 23 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3670/3670.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Medical Q&A chatbot for urology using RAG with Pinecone and GPT-4o do?

Medical Q&A Chatbot for Urology using RAG with Pinecone and GPT 4o This template provides an AI powered Q&A assistant for the Urology domain using Retrieval Augmented Generation (RAG). It uses Pine...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.