This component allows you to integrate a Retrieval-Augmented Generation (RAG) Proof of Concept with OpenAI’s Chat Completion API in your OutSystems applications.
Download and install the component from the Forge into your OutSystems environment.
Create an OpenAI account and generate an API key at https://platform.openai.com/account/api-keys.
Set the OpenAI API Key by navigating to Service Center > Factory > Site Properties and updating the OpenAI_APIKey property with your key.
OpenAI_APIKey
Publish the module and make sure all dependencies are resolved.
Optional: Configure additional site properties like OpenAIModel or MaxTokens as needed.
OpenAIModel
MaxTokens
Server Action: ChatCompletionConnectorInput: Prompt (Text)Output: Response from OpenAI (Text)This action sends a user prompt to OpenAI and returns the completion based on the RAG-enhanced context.
Server Action: SetAPIKeyInput: API Key (Text)Dynamically sets the key at runtime if needed.
SetAPIKey
Web Block: ChatInterface (optional)Prebuilt UI component to integrate chat functionality into your application quickly.
ChatInterface
No external dependencies beyond OpenAI.
Ideal for POCs or MVPs leveraging contextual Q&A over document-based content.