🤖

Creating an AI Medical Agent Tool

May 3, 2025

Lecture Notes: AI Master Agent and New AI Medical Agent

Introduction

  • Welcome to today's lesson, focusing on building an AI Medical Agent.
  • Recap of the AI Master Agent consisting of 8 agents controlled by a master agent.
  • Goal: Create a new AI Medical Agent to add to the existing system.

Purpose of AI Medical Agent

  • Mimics user behavior of searching symptoms on Google or Reddit.
  • Provides summaries of Reddit posts and comments related to user symptoms.
  • Emphasized that it can't replace professional medical advice.

Commercial Announcements

  • Mention of a store with 39+ automations for generating revenue.
  • Availability of courses and specific interest in n8n.

Building the AI Medical Agent

Initial Setup

  • Use of a platform called me.com to create automation scenarios.
  • Trigger Setup: Starting with Slack to watch public channels.

Chat Completion with AI

  • Utilize AI for creating a chat completion, specifically using ChatGPT for initial tests.
  • System and User Setup: System to analyze messages, determine if Reddit search is needed.

Parsing and Filtering

  • Parse responses as JSON.
  • Use of a filter to determine if Reddit should be searched.

Scraping Reddit

  • Use of Apify platform to scrape Reddit posts and comments.
  • Running Apify Actor: Synchronous running to ensure completion before moving forward.

Data Handling

  • Data Collection: Gathering posts and comments data separately.
  • Use of a text aggregator to compile text from different sources into one format.

Testing the AI Medical Agent

  • Example query: "Chest pain when breathing deeply".
  • Adjustments made for JSON output formatting.
  • Final output includes a summarized analysis of findings from Reddit.

Summary from AI

  • AI provides a summary including key causes and advice.
  • Emphasized need for medical consultation despite AI summary.

Conclusion

  • Successful creation of AI Medical Agent capable of summarizing Reddit data.
  • Plan to integrate and export the agent for further use.
  • Encouragement to like, subscribe, and tune in for future lessons.