Skip to main content
IAMV Consulting

From Clinic to Classroom: AI Agent Assessment, Security, and Roadmap

AI Agents

Three consulting deliverables that unlocked the expansion of a conversational health platform into a new education vertical.

Critical findings identified…
5
Secrets management paths evaluated…
3
Plan for rotating exposed credentials
up to 15 business days

Executive summary

The problem
A healthtech wanted to expand its conversational platform into a new vertical, and the question leadership faced was not "can we build it?" but "will the foundation hold?" — there were hardcoded credentials, personal data in debug artifacts and fragile multi-tenant isolation.
What was done
Three consulting deliverables: a technical and product assessment of the n8n and Supabase platform, a plan to centralize and rotate credentials with zero downtime, and a delivery roadmap for the lead-capture agent of the new vertical.
The result
An expansion decision made on evidence — "proceed with conditions", with a hardening gate before rollout —, the most severe risk category closed into a plan the client team can execute, and the agent MVP scoped into 4 modules.
Where it applies
Products that grew fast on low-code automation and need to know what the foundation holds before scaling.

Want to discuss a similar challenge?

Book a free diagnosis to assess the context, constraints, and next step.

Fact sheet

Sector
Health and dentistry
Scope
Healthtech for conversational automation
Model
AI Assessment · Hourly
Stack
n8nSupabaseOpenAIInfisicalChatwootEvolution APINext.js

Delivery Scope

  1. 1Technical-Product Assessment

    5 critical findings, maturity across 6 dimensions, MoSCoW prioritization

  2. 2Credential Security Solution Plan

    Infisical, dual-key rotation, Gitleaks gate — 5 phases in up to 15 business days

  3. 3Recruitment Agent Roadmap

    4 modules + 4 increments post-MVP

Three consulting deliverables, each addressing a specific client decision, from assessment to the agent's roadmap.

The challenge

A Brazilian healthtech startup operating a conversational platform for dental clinics (built on n8n, Supabase, and LLMs) reached a turning point in 2026: to expand the same technological base into a new vertical, student recruitment for dental education institutions, starting with a college that is a final client of the company.

The question that leadership needed to answer was not "can we build it?", but "can the base support the expansion?". There were signs of accumulated fragility: hardcoded credentials in workflows, personal data persisted in debug artifacts, fragile multi-tenant isolation at critical points, and operational control dependent on spreadsheets. Scaling on this base would mean amplifying each of these risks, including exposure to LGPD and blockage in enterprise sales.

The solution

The engagement was structured into three targeted deliverables, each addressing a specific client decision.

1. Technical-Product Assessment. Static audit of n8n workflows covering architecture, external dependencies, security standards, multi-tenant isolation, and domain readiness for the new vertical. The verdict: proceed with conditions — mandatory technical gate of hardening before expansion. Five critical findings were identified, classified by impact and urgency, with maturity assessed across 6 dimensions and prioritization in a MoSCoW matrix.

2. Credential Security Solution Plan. The finding with the highest residual risk from the assessment became its own execution plan: centralize 100% of credentials in a secrets manager (Infisical, chosen after a well-founded comparison among three paths — native n8n credentials, Infisical, and cloud secrets manager), rotate all exposed keys with a dual-key standard for zero downtime, and implement a blocking CI gate with Gitleaks to prevent recurrence. A 5-phase plan in up to 15 business days, with explicit approval gates and executable by the client's current team.

3. AI Agent Delivery Plan. Technical roadmap for the MVP of a conversational recruitment agent for the educational institution: orchestrator with undergraduate and graduate subagents, channel-agnostic layer, automated follow-up, and admin panel in Next.js. Scope in 4 modules, with 4 post-MVP increments prioritized by operational impact (human handoff via Chatwoot, metrics panel, knowledge base with RAG, and WhatsApp via Evolution API).

How it works

The common thread among the three deliverables is the same: executive decision requires end-to-end technical visibility. Each document follows the structure executive summary → context → diagnosis with evidence → prioritized recommendations (high/medium/low) → action plan with responsible party, window, and effort.

In the security plan, each mapped credential received a provider, criticality, and required action; the rotation was designed with a window approved by executive leadership and rollback ready before revoking any old key. In the agent roadmap, every message from any channel is normalized into a single object before entering the agent logic — adding a new channel requires only a connector, without touching the core. The design repurposes the infrastructure that the client already operates (Supabase, n8n self-hosted, Chatwoot), reducing the project's foundation to schema, data seed, and configuration.

The complete conversational flow of the agent was mapped in a decision diagram: forms of entry for undergraduate (entrance exam, ENEM, transfer, new degree), enrollment in graduate studies, handling of closed deadlines, structured human handoff, and scheduled follow-ups.

Solution Architecture

Candidate Message
Recruitment Agent
Response
Recursos · Recruitment Agent
Subagents
Undergraduate
Entrance exam, ENEM, transfer, and new degree
Graduate
Enrollment and deadlines closed
Channel (agnostic)
Message Normalization
Single object before agent logic
WhatsApp via Evolution API
Post-MVP increment
Human Handoff via Chatwoot
Post-MVP increment
Operation
Automated Follow-up
Scheduled in the conversational flow
Next.js Admin Panel
Repurposed Base
Supabase
n8n self-hosted
Chatwoot
Infrastructure already operated by the client
The scoped recruitment agent in the roadmap: multi-agent orchestration, channel-agnostic layer, and repurposed client infrastructure.

Results

  • Expansion decision made based on evidence: verdict "proceed with conditions," with a 6-week hardening window and controlled pilot before commercial rollout
  • Most serious risk category of the operation closed in an executable plan: 100% of credentials migrated to a central vault and rotated without downtime, with prevention of recurrence via CI
  • Scoped and unlocked MVP of the recruitment agent: 4 modules with acceptance criteria, dependencies, and a single external blocker identified before development began
  • Client team self-sufficient by design: vault operation runbook, walkthrough with the team, and 90-day rotation cadence transfer the operation without dependency on consulting

The lesson learned: product expansion rarely fails due to a new feature — it fails due to a base that no one audited. An honest assessment before the roadmap costs a fraction of the rework it prevents and transforms "let's scale" from a gamble into a decision.

Results

5
Critical findings identified in the assessment
3
Secrets management paths evaluated and compared
up to 15 business days
Plan for rotating exposed credentials
4 modules
Scoped MVP of the recruitment agent