Library / AI Agents & Assistants
AI Agents & Assistants
Extract doctor stamp details from images with AWS Bedrock Claude and SNS
When an API call/webhook arrives, it runs an AI agent with AWS Bedrock and Claude using AWS Bedrock, Aws Sns.
What it does
# 🩺 Doctor Document Image Extraction Workflow ## Overview This workflow processes doctor-related document images and extracts structured information using AI-powered Vision OCR. The workflow: 1. Receives an extraction request through a Webhook. 2. Fetches the source image from File Management. 3. Resizes the image to a maximum of 800x800 pixels. 4. Sends the image to an AWS Bedrock Vision model. 5. Validates and extracts doctor/facility information using a structured prompt. 6. Parses the AI response into a predefined JSON structure. 7. Generates the final extraction response. 8. Encodes the response into Base64. 9. Publishes the result to AWS SNS for downstream processing. ## Supported Information Doctor: - Name - Qualifications - Speciality - Registration Number - Registration Council - Designation - Department - Mobile Number - Email - Landline Number Facility: - Hospital / Clinic name - Address - Email - Mobile Number - Landline Number - Website ## AI Extraction Rules The AI agent is instructed to: - Extract only information clearly visible in the image. - Never guess or hallucinate missing information. - Avoid extracting patient information. - Detect invalid/non-physical documents. - Avoid duplicate doctor records. - Preserve the original readable text as much as possible. ## AI Model AWS Bedrock Model: Claude Haiku ## Output The extracted JSON is converted to Base64 and published to AWS SNS for downstream processing. ## Error Handling Workflow errors are captured using an Error Trigger and published through the same downstream notification mechanism.
The steps
- Webhook
- AI Agent
- Respond to Webhook
- Structured Output Parser
- Convert to Base64
- Generate Output
- Call Fetch File From File Management
- AWS SNS
- Error Trigger
- Edit Fields
- AWS SNS1
- Convert to Base
- Resize to 800x800 Max
- AWS Bedrock Chat Model
Similar automations
Reports, Analytics & DashboardsSend daily AWS news digest to Microsoft Teams with Bedrock Claude filtering12 stepsAlerts & NotificationsSend a Test Message with AWS SNS2 stepsData Sync & ETLSend daily JLPT kanji-safe lessons to Microsoft Teams with Sheets and Claude18 stepsMonitoring, Ops & IncidentsReceive AWS SNS Event Notifications1 steps