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.
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).
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 variablesformsort_environment
is_returning_responder
current_step_id
current_step_index
responder_uuid
user_agent
is_mobile
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.