Open AI Functions

Open AI Functions are a way to extend the functionality of ReSponse AI. 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.

Function Calling

Creating a Function

Use functions to automate your daily, manual tasks

To create a function, navigate to the Functions section of the ReSponse AI dashboard and click the Add New Function button.

This will create a new function with the following fields, for example:

  • type: function
  • name: cancel-order
  • description - cancels the customers order in Shopify

Click Add Function to create the function.

Updating a Function

To update a function, click on the Update button in the function row in the Functions section of the ReSponse AI dashboard.

This will open the function editor, where you can update the name, description or Create Function Parameter.

Adding a Function Parameter

Use function parameters for entity detection from a customers request

You can Create a Function Parameter with the following:

  • name: order_id
  • type: string
  • description: the order id of the order to cancel

Function Parameter

To add a function parameter, click on the “Add Function Parameter Type” button in the function modal.

Functions Overview

Once your function and function parameters have been created, ReSponse will load these into the ReSponse AI 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