Skip to main content

Medical symptom analysis & doctor recommendations with Ollama AI & WhatsApp

Workflow preview

Workflow preview
100%
Medical symptom analysis & doctor recommendations with Ollama AI & WhatsApp preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n workflow enables an AI powered symptom checker where users input symptoms via a form or chat, analyzes them using an AI model, matches possible conditions, and suggests relevant doctors wi...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatollama, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.emailsend, n8n-nodes-base.respondtowebhook

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Medical symptom analysis & doctor recommendations with Ollama AI & WhatsApp
Workflow name
Medical symptom analysis & doctor recommendations with Ollama AI & WhatsApp

This n8n workflow enables an AI-powered symptom checker where users input symptoms via a form or chat, analyzes them using an AI model, matches possible conditions, and suggests relevant doctors with contact details via WhatsApp or email, enhancing healthcare accessibility.

Why Use It

This workflow improves healthcare outreach by providing quick, AI-driven symptom analysis and doctor recommendations, reducing the burden on medical staff, empowering users with informed choices, and streamlining appointment scheduling.

How to Import It

  1. Download the Workflow JSON: Obtain the workflow file from the n8n template or create it based on this document.
  2. Import into n8n: In your n8n instance, go to "Workflows," click the three dots, select "Import from File," and upload the JSON.
  3. Configure Credentials: Set up form/webhook, AI model, WhatsApp, email (e.g., SMTP), and optional doctor database API credentials in n8n.
  4. Run the Workflow: Test with a sample symptom input and verify responses.

System Architecture

  • Symptom Input Pipeline:
    • Form/Chat Trigger: Initiates the workflow when a user submits symptoms.
    • Extract Symptom Data: Processes the input from the form or chat.
  • AI Analysis Flow:
    • Send to AI Model: Analyzes symptoms using an AI model.
    • Match Possible Conditions: Identifies potential health conditions.
  • Doctor Suggestion Flow:
    • Retrieve Doctor Details: Fetches relevant doctor data from a Google Sheet or API.
    • Prepare Suggestion Message: Formats the suggestion with doctor names and contacts.
    • Send WhatsApp Suggestion: Delivers the suggestion via WhatsApp.
    • Send Email Suggestion: Delivers the suggestion via email.
    • Update Log: Logs the request and response in a Google Sheet.

Google Sheet File Structure

  • Columns:
    • timestamp: Date and time of the symptom submission.
    • user_id: Unique identifier for the user (e.g., form ID or chat handle).
    • symptoms: List of symptoms entered by the user.
    • condition: AI-identified possible condition.
    • doctor_name: Name of the suggested doctor.
    • contact: Doctor’s contact (phone or email).
    • sent_via: Channel used for delivery (e.g., WhatsApp, Email).

Customization Ideas

  • Add More Channels: Integrate SMS or Slack for additional notifications.
  • Enhance AI: Train the AI model with more medical data for better accuracy.
  • Include Appointment Booking: Add a node to schedule appointments with suggested doctors.
  • Multilingual Support: Adapt responses for different languages.
  • Severity Alerts: Flag critical conditions for immediate medical attention.

Requirements to Run This Workflow

  • Google Sheets Account: For logging symptom data and doctor details.
  • AI Model: Ollama or similar for symptom analysis (requires API access).
  • Form/Chat Service: Google Forms, WhatsApp webhook, or similar for user input.
  • WhatsApp Business API: For sending WhatsApp messages (requires token and phone number).
  • Email Service: Gmail, SMTP, or similar for email delivery.
  • n8n Instance: With Google Sheets, AI, WhatsApp, and email connectors configured.
  • Internet Connection: To access APIs and services.

Want a tailored workflow for your business? Our experts can craft it quickly Contact our team

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 - Medical AI Model

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

Block 2 - Symptom Input Webhook

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

Block 3 - AI Symptom Analysis

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

Block 4 - Parse Medical Analysis

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Check Emergency

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

Block 6 - Find Doctors

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

Block 7 - Create Emergency Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Format Medical Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Check WhatsApp Available

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

Block 10 - Prepare WhatsApp Message

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Send WhatsApp Response

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

Block 12 - Send Email Response

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

Block 13 - Success Response

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

Block 14 - Medical Bot Overview

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

Block 15 - Setup Guide

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

3. Summary Table

Workflow Medical symptom analysis & doctor recommendations with Ollama AI & WhatsApp
Complexity advanced
Nodes 15
Categories Support Chatbot, Multimodal AI
Author Oneclick AI Squad
Published 08 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7179/7179.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 symptom analysis & doctor recommendations with Ollama AI & WhatsApp do?

This n8n workflow enables an AI powered symptom checker where users input symptoms via a form or chat, analyzes them using an AI model, matches possible conditions, and suggests relevant doctors wi...

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, Multimodal AI use case.