Skip to main content
This is a step-by-step guide to creating and running your first workflow on the Simplex dashboard. We’ll walk through creating a workflow to fill out the first part of a form on an Aetna healthcare page.

Create an agent

Let’s start by creating a form filling agent. We will keep our prompt high-level so it can be used across a long tail of web portals.
1

Create an agent

Start by creating an agent and adding a descriptive name.

Create and name agent

2

Add agent prompt and tools

Add a prompt and agent tools. Variables in the prompt will be automatically detected, like form_info in this prompt.
[wait_for_seconds, click_element, press_enter, scroll_down, scroll_up, type_text]
Your goal is to fill out the fields present on the page with the given <form_info>. New
fields may appear on the page. Simply fill out the fields till no more appear. Do not click
any buttons to save, submit, or move to the next page.

<notes>
  - For dropdowns, use one step to click on the dropdown and another step to select the option.
  - Close any popups that might appear.
  - Only fill fields on the page. Do not click Submit, Continue, or similar buttons to move on.
  - There may be info in <form_field> that are not on the current page. That is okay.
</notes>

<finish_task>
  - Call done when all the fields on the page are filled out.
  - If new fields appear on the page, fill those as well. Ensure no more fields appear on the
  page before finishing the task.
  - Call fail_task with a message if form_info is incomplete.
</finish_task>

<form_info>
  {{form_info}}
</form_info>

Add a prompt and agent tools

Create and run the workflow

Build a new workflow with our newly created form filling agent.
1

Create a workflow

Create a new workflow with a name and the Aetna starting url: https://extaz-oci.aetna.com/pocui/join-the-aetna-network.
2

Configure workflow

Add our previously created Form Filling agent to the workflow. Variables are automatically detected.
3

Run the workflow

Run the workflow by defining the variables. View the live workflow session with agent logs and livestream in the Simplex dashboard. The live session will automatically open if you have popups disabled. Otherwise, view the livestream in the Sessions tab.
{
  "form_info": {
    "interested_in": "Aetna",
    "applying_for": "Behavior Health",
    "joining": "A individual provider applying under a SSN or TaxID/EIN"
  }
}