Functions Quickstart
Getting started with ResponseCX Functions
Open AI Functions
Open AI Functions are a way to extend the functionality of ResponseCX. They are written in JavaScript and can be used to perform a variety of tasks, such as:
- Sending emails
- Sending SMS messages
- Creating a Return
- Creating a Refund
- Changing an Order
- Cancelling an Order
- Cancelling a Subscription
- Pausing a Subscription
Function Setup
To get started with function you will need to make sure that you have downloaded our Shopify App or provided API Access to your Shopify Store.
By using functions, ReSponse can automate calls based on the intent of your customer. For example, if the customer asks to cancel their Order, ReSponse can automatically call the Shopify API to cancel the order.
The intent and the parameters such as the Order ID are passed to the function as parameters.
Creating a Function
To create a function, navigate to the Functions section of the ResponseCX dashboard and click the Add New Function
button.
This will create a new function with the following fields, for example:
- agent:
ReSponse
- type:
function
- name:
cancel-order
- description -
cancels the customers order in Shopify
Click Add Function
to create the function.
Creating a Function via the SDK
Updating a Function
To update a function, click on the Update
button in the function row in the Functions section of the ResponseCX dashboard.
This will open the function editor, where you can update the name, description or Create Function Parameter
.
Adding a Function Parameter
You can Create a Function Parameter with the following:
- name:
order_id
- type:
string
- description:
the order id of the order to cancel
To add a function parameter, click on the “Add Function Parameter Type” button in the function modal.
Creating a Function via the SDK
Functions Overview
Once your function and function parameters have been created, ReSponse will load these into the ResponseCX dashboard.
These will be initialized as when processing requests from the customer.
For more information on how to use the functions, please reach out at response@stateset.com