Get Started
Automate your healthcare workflows with Formsort integrations and Morf. Formsort is a no-code form builder for creating and optimizing onboarding, check-ins, and quizzes. The following Formsort events can be used to trigger a Morf workflow.
Setup your Formsort integration
Generate and connect Formsort API key (optional)
- In Formsort, navigate to Setup > API Keys > Generate a new API Key. This will create a new API key for Morf.
- In your Morf admin dashboard, navigate to the integrations page. Click + Integration in the top right corner.
- Select Formsort API Key and click Continue.
- Enter your newly created API key and click Connect.
Formsort API keys are optionally generated and connected to each environment.
Register Morf webhook URL
- Create your workflow in Morf.
- In the workflow viewer, click on the trigger node and navigate to the Connect tab. Copy the Morf webhook URL. This will start with
https://api.morf.healthcare/webhooks/
- In Formsort, navigate to the flow > integrations > webhooks. Click add destination.
- Set posting frequency to
After every step
- Set webhook URL to the Morf webhook URL
- Save
- Set posting frequency to
- Deploy your variant(s).
Morf webhook URLs must be registered for each flow.
Note: Morf webhook URLs are unique by environment. Follow the above steps in both staging and production. Navigate between Formsort environments using the drop down at the top of the integrations page.
Define Formsort system library variables
If you’re working from a Morf template, this step is already complete.
In Formsort, navigate to your flow variant > variables > system library > browse library. Add the following system library variables
formsort_environment
is_returning_responder
current_step_id
current_step_index
responder_uuid
user_agent
is_mobile
System library variables must be added for each flow variant.
Define Formsort calculated variable
In Formsort, navigate to your flow variant > variables > calculated inline > add calculated variable.
- Add a calculated variable named
morf_org_id
- Toggle “Uses other variables” on and select
formsort_environment
- Update the getter function body as follows. Add your Morf staging and production organization IDs.
morf_org_id
must be added for each flow variant.
Configure flow variant settings
In Formsort, navigate to your flow variant > settings. Toggle off “Enable restart once flow completed”
Note: If it’s a referral then toggle on “Start each session as a new responder” and toggle on “Enable restart once flow completed” so that each referral generates a new profile