• CRITICAL
  • MONITOR
  • STABLE
  • REVIEW

How to identify medical referral needs with your agent

Connect your sleep tracking data once. Your agent then watches for specific symptom patterns that signal a need for professional medical intervention.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How do I know when a patient needs a doctor?

Your agent analyzes incoming sleep logs and compares them against clinical severity thresholds. It flags specific users who meet these criteria so you can act immediately. You'll see exactly which patients require a consultation.

Where each issue lands.

The outcomes of monitoring

Your agent sorts sleep data into these four categories based on severity.

CRITICAL

Immediate doctor referral

Your agent identifies symptoms that hit clinical danger zones. You get a list of patients who need a consultation right away.

MONITOR

Ongoing observation

Symptoms are present but haven't hit the threshold. Your agent keeps these patients on your radar without triggering an alert.

STABLE

Routine tracking

Sleep patterns are within normal ranges. Your agent logs this data and stays quiet until something changes.

REVIEW

Human intervention needed

Your agent flags ambiguous data that doesn't fit a clear pattern. You decide if these cases need a manual review or a referral.

The workflow

What your agent does when sleep data arrives.

Your agent handles the heavy lifting of pattern recognition so you don't have to scan each log manually.

  1. Ingest sleep logs

    Your agent pulls the latest insomnia severity scores and symptom descriptions from your data source.

    check_referral_necessity
  2. Evaluate severity

    Your agent compares the current symptom intensity against established clinical benchmarks.

    check_referral_necessity
  3. Flag high-risk users

    When a threshold is crossed, your agent marks the user for immediate medical review.

    check_referral_necessity
  4. Categorize status

    Your agent organizes each patient into a status group, from stable to critical, for your review.

    check_referral_necessity

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Insomnia Severity Tracker tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin working with your sleep data.

Starting points

These are starting points. Swap out the specific data source or patient list names to match your actual setup.

Insomnia Severity Tracker Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_ZQJfi4eb0MG8tAHe0njs7ibcCaDO4c5WkBWmyz4q/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Insomnia Severity Tracker capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "insomnia-severity-tracker-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_ZQJfi4eb0MG8tAHe0njs7ibcCaDO4c5WkBWmyz4q/mcp"
    }
  }
}
Copy into chat04
  • 01

    Check the latest sleep logs in my Google Sheet and tell me who needs a doctor.

  • 02

    Review the insomnia symptoms in this CSV and flag anyone hitting a clinical threshold.

  • 03

    Look through the patient data in my database and list all users in the 'CRITICAL' category.

  • 04

    Scan the recent symptom reports in my Notion workspace and identify anyone requiring a referral.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Insomnia Severity Tracker once, then ask.

Link your data source. Your credentials stay encrypted, and you can start asking questions in your preferred AI client immediately.

Connect Insomnia Severity Tracker to your agent

FAQ

How this task behaves

  • 01

    Can your agent make a medical diagnosis?

    No. Your agent only identifies when symptoms meet specific thresholds that suggest a human doctor should be consulted.

  • 02

    Does your agent automatically book appointments with doctors?

    No. Your agent flags the need for a referral, but you must handle the actual scheduling and medical outreach.

  • 03

    Will your agent delete any of my patient sleep logs?

    No. Your agent only reads the data to perform its analysis. It cannot modify or delete your original records.

  • 04

    How does it know when a symptom is 'severe'?

    It uses the clinical thresholds defined within the check_referral_necessity tool to compare against your data.

  • 05

    Can I use this with any AI client?

    Yes, as long as you are using an MCP-compatible client like Claude, Cursor, or Windsurf.

  • More questions about Insomnia Severity Tracker? The Connector page answers them. See everything the Insomnia Severity Tracker Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Insomnia Severity Tracker to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Insomnia Severity Tracker plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Insomnia Severity Tracker to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.