WholeScripts
Send supplement recommendations to patients via WholeScripts by XYMOGEN.
Connectors
Choose the connector that matches your authentication method. The options below use the names shown in StackAI.
WholeScripts
OAuth sign-in
WholeScripts
Connect to WholeScripts using OAuth2. Practitioners log in via WholeScripts to authorize access for sending supplement recommendations.
Set up in WholeScripts
Use a WholeScripts account with access to the records and operations that your workflow needs.
If your organization restricts application access or user consent, have its administrator approve the connection before you sign in.
Set up in StackAI
Open Settings → Connections, add a connection, and select WholeScripts.
Select Connect, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.
StackAI obtains the OAuth credentials during sign-in. You do not need to paste an access token or refresh token.
Verify the connection
Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.
If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.
Use an action
Add the required WholeScripts action to the workflow.
Select a connection when the action requests one.
Complete the required fields. Use the reference picker when a value comes from another workflow step.
Run the workflow and inspect the action’s output. Check the result before using it in a later step.
Actions
Search Products
Search the WholeScripts supplement product catalog.
Inputs
Search Query
string
Yes
Product name, keyword, SKU, or category to search for.
In Stock Only
boolean
No
Only return products that are currently in stock. Default: true.
Brand Name
string
No
Filter results by brand name. Default: .
Outputs
Products
object_array
List of matching products.
Result Count
number
Number of products returned.
Get Patient
Look up a patient by email in WholeScripts.
Inputs
Patient Email
string
Yes
The patient's email address to look up.
Outputs
Patient
object
The matching patient, or null if not found.
Found
boolean
Whether a matching patient was found.
Message
string
Status message from the API.
Submit Recommendation
Submit a product recommendation to a patient via WholeScripts.
Inputs
Practitioner Email
string
Yes
The practitioner's WholeScripts account email.
Patient Email
string
Yes
The patient's email to send the recommendation to.
Patient First Name
string
Yes
The patient's first name.
Patient Last Name
string
Yes
The patient's last name.
Notes
textarea
No
Notes to attach to the recommendation. Default: .
Referral Code
string
No
Referral code for new patients. Default: .
Referral Name
string
No
Referral name for new patients. Default: .
Recommendation Items (JSON)
textarea
Yes
JSON array of product items to recommend.
Send Email
boolean
No
Whether WholeScripts should email the patient about the recommendation. Default: true.
Outputs
Recommendation ID
number
The ID of the created recommendation.
Patient Link
string
Link for the patient to view the recommendation.
Success
boolean
Whether the recommendation was submitted successfully.
Message
string
Status message from the API.
Get Referral Codes
Get referral codes for the connected WholeScripts practitioner.
Inputs
No input fields are required in this catalog entry.
Outputs
Referral Codes
object_array
List of referral codes for the authenticated practitioner.
Important behavior
If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.
Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.
The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.
Last updated
Was this helpful?

