AriaMD and automations
AI Tasks and Automations
Schedule an AriaMD task. Build steps on a canvas or in a list. Review each run.
The Automations page lists your AI tasks for the current clinic. A task runs on a schedule, after an event, or when you start it.
Create a task
- Open Automations.
- Click New Task. The page title is New automation. The text says: Set the trigger, ordered actions, and run controls.
- The editor opens on Workflow. Simple and Advanced sit beside Save automation. Simple is Visual flow. Advanced is Detailed list. With no choice stored, the editor opens in Simple. The choice stays on this browser. Choosing either one opens Workflow.
- On Simple, the canvas shows Trigger, Add step, and End. An empty canvas says: No steps yet. The default prompt runs until you add one.
- Click the Trigger node. The panel title is Trigger. Set Run when there, or open Setup and use the Trigger card. Both show the same fields.
- On Setup, the Task card says: A prompt runs by default when no actions are listed. Enter a Name.
- Enter a Default prompt. The field says Describe what AriaMD should do. The hint says: Optional when the workflow has actions. AI actions inherit this prompt unless they specify an override.
- Select ultra, normal, fast, or budget for Intelligence level. See Plans and Pricing for credit tiers.
- Select In app, Email, or Both for Notify via. See Notifications for inbox delivery.
- Under AI tools, select the tools for the task. The options are Patients, Encounters, Documents, Web search, and External portals. Patients and Encounters are on by default. The card says: Configured workflows use read tools and approval-controlled clinical proposals. File tools and external portals remain available through the default AI workflow.
- Workflow variables says: Values every step can read as vars.name.
- Click Save automation.
The side panel on Setup is Template reference.
An empty step list runs the default prompt. On Advanced, that empty list shows Default AI task and The task prompt runs when this list is empty. The default run can use External portals. It can ask for a one-time code. Once the workflow has a step, the External portals checkbox is unavailable, and the task runs the listed steps.
Triggers
Run when is Scheduled, Event occurs, or Manual or another automation.
On the canvas, the trigger titles are:
- Scheduled: When the schedule runs
- Event occurs: When an event occurs
- Manual or another automation: When started manually. The summary says: Run now or from another automation.
For Scheduled, select once, daily, weekly, or monthly under Frequency. Set Time and Timezone. For a weekly task, set Day of week. For a monthly task, set Day of month from 1 to 28. A new task starts at daily, 09:00, with Timezone set from the browser.
Event occurs lists:
- Encounters: Encounter Signed, Note Processed, Service Location Assigned, Billing Code Assigned
- Documents: Document OCR Complete
- Fax: Fax Received, Fax Delivered
- Forms: Form submitted. This event occurs when a form submission runs an automation with an AI task step.
Manual or another automation says: Runs when you start it or when another automation hands off to it. Handoff data is in {{context.input}}.
Workflow
Simple
Click Add step on an empty canvas, or the plus between steps. The list says Search steps. An empty search says: No matching steps.
On an empty canvas, Start from a recipe lists:
- Branch then webhook. Two paths, each posting to its own URL.
- Map fields and post. Build a JSON payload, then send it.
- AI classify then route. Let AI pick a category, then branch on it.
Click a step to open its panel. The variable list there is Variables for this step.
The step menu is Duplicate, Move up, Move down, and Delete.
Build with AI sits on the canvas. The panel title is Build with AI. The text says: Describe the workflow. Changes apply to the canvas and can be undone. Hide assistant closes the panel. That open or closed choice stays on this browser. With no choice stored, a new automation opens the panel on a wide window.
Advanced
Open Advanced. The heading is Actions. The text says: Run in the order shown. With actions present, only these actions run.
Click Add action. The new row is named Execute AI. Its Step type is AI step. Move a row up or down to change the order. Remove a row to exclude it.
The side panel title is Variables.
Steps
Search steps groups the step types:
- Logic: Branch, Run in parallel, Run automation, Stop
- Data: Set variable, Transform data, Set result, Script
- AI: AI step, AI agent
- Send: Webhook, Email, Notification
- Records: Find record, Update record, Create patient, Create encounter, Patient insurance
Branch says: Send the run down the first path whose rule matches, or the Otherwise path. The panel heading is Paths. The text says: The first path whose rule matches runs. Each path has Path name and Runs when. Otherwise says: Runs when no path matches. Add path adds a path. On the canvas, that path is labeled Otherwise and No path matched.
Run in parallel says: Run several steps at the same time. The canvas group is In parallel. Add parallel step adds a step in that group.
Run automation says: Hand off to another automation with the data you choose. The fields are Automation and Data to send. With no other automation, the panel says: No other automations yet. Create the automation to hand off to, then pick it here. The other automation reads each key as {{context.input.<key>}}. A run that tries to start itself says: An automation can’t run itself. A longer chain says: This run was started by a chain of 3 automations, the most one run can hand off through.
Stop says: End the run here.
Set variable says: Save a value to use in later steps. Saving without Save output as says: Set variable needs an output variable.
Transform data says: Build or edit JSON, XML, form, or text from your variables. Output format is JSON, XML, Form, or Text.
Set result says: Choose what the run reports when it finishes.
Script says: Run JavaScript on the run data in a sandbox. The editor says: Return a JSON-compatible value synchronously. Scripts have no network access and require a configured sandbox image.
AI step says: Ask AI to write text or fill structured fields. AI agent says: Let AI read records and propose changes for approval. The prompt placeholder says: Blank uses the automation prompt. Intelligence is Same as automation, Ultra, Normal, Fast, or Budget. AI step output is Text or Structured.
Webhook says: Send an HTTP request with mapped data.
Email says: Email a team member.
Notification says: Send an in-app notification. This action adds an Automation message to the notification list.
Find record says: Look up a patient or encounter.
Update record says: Change fields on a patient or encounter.
Create patient says: Add a patient chart.
Create encounter says: Add a draft encounter.
Patient insurance says: Add, update, or archive coverage.
Retry on failure appears on Webhook, AI step, AI agent, Script, Find record, and Run automation. Off, the hint says: Fails on the first error. On, set Attempts from 1 to 5, Wait (seconds) from 0 to 3600, and Wait between tries to Fixed or Doubling.
Turn on Run only when to open the condition editor. The operators are:
- Always, All of these match, Any of these match
- Is present, Is missing, Is empty, Is true, Is false
- Equals, Is more than, Is less than, Contains
- Is before, Is after, Day of week is, Time is between
- AI decides
Select Invert to reverse the result. All of these match and Any of these match use Add condition.
If this step fails is Stop the automation, Continue to the next step, or Run fallback steps. A step inside another step, and Run in parallel, also list Stop this group. Run fallback steps needs at least one step under If this fails. Saving without one says: Add at least one fallback action.
A step with a blank Name says: Each action needs a label. A workflow past the limit says: Use at most 100 actions and 5 nested groups.
Controls
For patients, encounters, webhooks, and email, select Require approval, Auto approve, or Allow. Patients and encounters use Require approval by default. Webhooks and email use Allow by default. An empty workflow keeps the default AI permissions.
The Approvals tab on the Automations page lists proposals. Each card shows What, Why, and Impact. Click Approve or Deny on a card. An empty page says No approvals to review.
If Duration is empty, Run retention keeps the run data. The hint reads Keep forever. A duration must be at least 7 days. The categories are context, variables, outputs, logs, approvals, and runs.
Secrets
The Secrets page stores values for actions that send data. The page says to use tags as {{ secrets.TAG }}. Click New secret to enter Label, Tag, Value, and Expires on. The saved value stays hidden.
Manage tasks
On the Automations page, select All, Active, Paused, or Completed to filter tasks. Each card shows the status, next run, last run, and run count. If the last run failed, the card shows Last run failed.
- Click Run now on the card to add the task to the run queue.
- Open the card menu for View Details, Edit, Pause, Resume, and Delete. If you delete a task, Nextvisit also deletes its run history.
View executions
- Click View Details on a task. The Details tab shows the prompt.
- Open History to see runs. Each row shows a status, duration, and date. The statuses are Completed, Failed, Running, Pending, and Waiting for input.
- Click a run to open Execution Details. It shows status, duration, tokens, Response, and Attached Files. For an event run, it also shows Event Triggered. A failed run shows an error under Execution Failed.
Click Run Now on Details to add a run to the queue.

If a PDMP check needs a one-time code, the default AI run shows Waiting for a one-time code. Enter the One-time code. Then click Continue.
Was this article helpful?
Still stuck? Our team answers in the messenger.