Login to follow
Chat GPT - Demo

Chat GPT - Demo (ODC)

Stable version 0.1.1 (Compatible with ODC)
Uploaded on 04 October 2023 by DIL Dragons
Chat GPT - Demo

Chat GPT - Demo (ODC)

Documentation
0.1.1

Installation


1. Download and Add the Component:

   - In your OutSystems environment, visit the OutSystems Forge.

   - Search for the "ChatGPT Component."

   - Download the component and add it to your OutSystems application as a dependency.


2. Configure the API Key:

   - In your application, navigate to the settings where you can configure the ChatGPT API secret key.

   - Provide your ChatGPT API secret key to enable access to the ChatGPT API.




Initializing ChatGPT


To use ChatGPT within your application, follow these steps:


1. Add the ChatGPT Widget:

   - In your application's screen where you want to incorporate ChatGPT, add the "ChatGPT" widget.


2. Configure ChatGPT Initialization:

   - Open the properties of the "ChatGPT" widget.

   - Input your ChatGPT API secret key.


Sending Messages


You can use the ChatGPT component to send user messages and receive responses:


1. User Interaction:

   - Add user interface elements to allow users to input messages or questions.


2. Handling User Input:

   - In your application logic, capture the user's input and use the "SendMessage" action provided by the ChatGPT component to send the message to ChatGPT.


3. Displaying Responses:

   - Capture and display responses received from ChatGPT in your application's user interface.


Advanced Configuration


For advanced use cases, you can explore additional configuration options provided by the ChatGPT component, such as specifying conversation context or system-level instructions.