This Asset demonstrates a simple integration with ChatGPT in order to obtain help planning your trips.
Find here below the documentation that will help you with setting it up.
This component has no dependencies other than the need of a token with Open AI.
We will share here some links that will help you generate your API.
Chat GPT APIs documentation: https://platform.openai.com/docs/guides/gpt/chat-completions-api
Quick Start:
https://platform.openai.com/docs/quickstart?context=python
Create an Account:
https://auth0.openai.com/u/signup
API Key Page (to generate the key):
https://platform.openai.com/account/api-keys
By following these steps you’ll be given a token which you’ll need to inform on your TripPlanner app.
Go to Service Center (https://your_personal.outsystemscloud.com/ServiceCenter/) >> Factory >> Modules >> Search for Trip_planner >> go to Site Properties tab.
After informing your token, you must have something like this:
You’re good to go!!
Using the app is very intuitive. You can setup multiple Trips. The app will formulate the prompt that will be sent to ChatGPT basically based on the trip start and end date as well as the destination.
Note: Please, notice that the integration to ChatGPT takes around 20 seconds to complete. To avoid timeouts we have set the module property “Server Request Timeout” to 30 seconds.