ChatGPT Triggers

You are here:
Estimated reading time: 3 min

ChatGPT Triggers allow you to connect ChatGPT to your automation and any external tool. With ChatGPT trigger, you can collect user data and trigger flows easily. The flow you trigger can run any automation, get data from other systems, and return the data to ChatGPT.

Imagine a user asking, “What is the weather like in New Your?”, ChatGPT doesn’t have access to real-time data, and it will not be able to answer the user’s question. Thanks to ChatGPT Triggers, you can trigger an automation that gets the data from any Weather API.

Also, ChatGPT Triggers are fantastic for getting data to qualify leads. Imagine you are a real state agent, and you could ChatGPT trigger that automatically collects any data you want when the user is interested in buying a home.

Chatrace already creates a ChatGPT trigger that allows the user to stop bot automation and talk with a human agent. This trigger is already active on all accounts.

How to create a ChatGPT trigger

Navigate to Settings > Integrations > OpenAI ChatGPT > ChatGPT Triggers and click the Manage button.

On the ChatGPT Triggers page, click the Add Button

Name: only looking for the trigger’s name, you must know what the trigger does. For example, instead of using “weather” as a name, use “get_current_weather”. Always try to include at least two words in the trigger name.

What does this trigger do?
this field should clarify even more what is the purpose of the trigger. Try always to start with “Allows the user to …”. For example, “Allows the user to book an appointment.” You don’t need to specify what data should be collected in this field.

What data to collect?
The name of the data to collect must be clear and have meaning. For example, if you want your trigger to collect user email, use “email” instead of a random name like “AAAAAA”. ChatGPT will never know what AAAAAA means.

What flow is triggered?
You can trigger any flow that will process the data collected. For the best user experience, if the response depends on the data collected, set the response in a single custom field and use it in the What is the output message?

What is the output message?
The result of triggering this ChatGPT Trigger. For example, “Your booking was confirmed”. The output message will not be sent exactly as specified. OpenAI will rewrite and send it to the user. We strongly recommend not sending the message directly from the flow builder. Instead, set your message on a text custom field and use the custom field as an output message.

Below are some examples of ChatGPT triggers.

Name: book_appointemt
What does this trigger do?:
Allows the user to book an appointment.
What data to collect?:
date, email, reason
What is the output message?
You have successfully booked an appointment.

Name: connect_user_to_human
What does this trigger do?: Allows the user to speak, talk or contact a human agent or team. This function will connect the user to a human agent.
What flow is triggered?
Trigger a flow that includes an Inbox Action that moves a conversation to a human.
What is the output message?
You are now connected to a human agent. We will get back to you soon.

Name: get_current_weather
What does this trigger do?: Allows the user to get the current weather in a given location
What data to collect?:
city
What flow is triggered?
Trigger a flow that you will connect to a Weather API using External Request.
What is the output message?
{{data_from_api}}

Name: join_email_list
What does this trigger do?:
Allows the user to join our email list.
What data to collect?:
email
What is the output message?
Success

Name: request_shipping_quote
What does this trigger do?:
Allows the user to request a quote for shipping a package.
What data to collect?:
origin_address, destination_address, dimensions, weight
What flow is triggered?
Trigger a flow that you will calculate a quote based on the data collected.
What is the output message?
{{quote}}

Enable a ChatGPT Trigger

After creating your ChatGPT trigger, you need to attach it to the OpenAI action or attach it to the OpenAI Settings.

Important notes

Your prompt can affect the way your ChatGPT Triggers work. For example, during our tests, we noted that sometimes OpenAI tries to automatically fill parameters if the user did not provide them. For example, if you have a restaurant reservation Trigger, you could include in your prompt, “It is very important to ask the user for the date and number of guests when the user wants to make a reservation.”

Was this article helpful?
Dislike 0
Views: 1996