sesion-workflow-clinic

Implements appointment scheduling, WhatsApp automation, AFIP invoicing, and video consultations for Argentine psychology clinics.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill sesion-workflow-clinic-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sesion-workflow-clinic
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/sesion-workflow-clinic
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill sesion-workflow-clinic-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @nestjs/common, @nestjs/schedule, @prisma/client, @whiskeysockets/baileys, @afipsdk/afip.js, @anthropic-ai/sdk, livekit-server-sdk.

What problem does it solve? Psychology clinics in Argentina must coordinate appointment scheduling, patient reminders, tax-compliant invoicing, and video consultations across disconnected tools, creating manual overhead and missed appointments. ## Core Features & Use Cases - Appointment Scheduling: NestJS and Prisma services detect scheduling conflicts and compute available time slots, with a SvelteKit booking interface. - WhatsApp Automation: Baileys-based messaging sends confirmations and 24-hour/2-hour reminders, parses patient replies, and escalates crisis keywords. - AFIP Electronic Invoicing: Generates Factura C vouchers with CAE numbers through the Argentine tax authority and produces monthly income and tax reports. - AI Clinical Assistant: Claude Opus and Sonnet models summarize session notes, generate reports, and predict therapeutic outcomes. - Use Case: A clinic books a virtual session, the patient receives a WhatsApp confirmation and reminders, the practitioner gets an AI-generated clinical summary, and an AFIP-compliant invoice is issued after the LiveKit video consultation. ## Quick Start Ask the assistant to set up the Sesión platform by cloning the repository, configuring the environment variables for PostgreSQL, Anthropic, WhatsApp, LiveKit, and AFIP, then running the Prisma migrations and development servers.

Frequently Asked Questions about sesion-workflow-clinic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate WhatsApp appointment reminders with Baileys?▼

Use the Baileys library to create a WhatsApp socket with multi-file auth state, then send confirmation and reminder messages to patient phone numbers. NestJS cron jobs trigger 24-hour and 2-hour reminders by querying upcoming appointments in Prisma.

How to generate AFIP electronic invoices in Node.js?▼

Use the @afipsdk/afip.js package with your CUIT, certificate, and key files to call ElectronicBilling.createVoucher. The service fetches the last voucher number, submits invoice data for Factura C, and stores the returned CAE and expiration date.

How do I detect scheduling conflicts in a NestJS booking system?▼

Query Prisma for existing appointments where the requested time range overlaps with stored startTime and endTime values, excluding cancelled entries. If conflicts exist, reject the booking; otherwise create the appointment and send a WhatsApp confirmation.

Can I use Claude AI to summarize clinical session notes?▼

Yes, the Anthropic SDK summarizes session notes using Claude Opus for detailed clinical reports and Sonnet for fast real-time assistance. Prompts include patient history context and request structured output covering diagnosis, interventions, and treatment plans.

Does LiveKit support video consultations in a SvelteKit app?▼

LiveKit server SDK generates AccessToken JWTs with room join, publish, and subscribe grants for each participant. The frontend connects to the LiveKit WebSocket URL using the token to join the consultation room tied to an appointment.

What are the limitations of Baileys for WhatsApp automation?▼

Baileys uses an unofficial WhatsApp Web protocol, so sessions can disconnect and require reconnection logic or re-authentication via QR code. It lacks official WhatsApp Business API features like verified templates and guaranteed delivery SLAs.