The Groq Connector enables OutSystems applications to seamlessly integrate with Groq’s ultra-fast AI inference platform through a unified API. By connecting with Groq, developers can quickly enable advanced AI-powered features such as real-time summarization, natural language Q&A, and intelligent chatbots, without dealing with complex REST setups or performance bottlenecks.
The connector abstracts API complexity and allows interaction with Groq-hosted AI models through structured message formats, providing lightning-fast inference and low-latency responses.
Download the Groq Connector from the OutSystems Forge.
Add it as a dependency in your application:
Open Service Studio → Manage Dependencies
Search for Groq Connector and include it in your module.
Once added, you can access all the available Server Actions, Structures provided by the connector.
Groq Account: Sign up or access your account via groq.com or through your organization’s integration setup.
Groq API Key: Generate or retrieve your API key from your Groq developer console or your organization’s administrator. This key is required for authenticating API requests securely.
In your OutSystems logic flow, drag and use the Groq Connector Server Action wherever you need to send a request to Groq’s AI platform.
Parameter
Type
Required
Description
api_key
Text
✔️
Your Groq API key for authenticating the request
model_id
The AI model to use (e.g., llama3-70b, mixtral-8x7b)
messages
List
A list of message objects, each containing a role and content
content_type
❌
Optional. Defaults to application/json
[
{ "role": "system", "content": "You are a helpful assistant that provides clear and accurate answers to user questions." },
{ "role": "user", "content": "Who was the first Prime Minister of India?" }
]
Common roles:
system → Defines how the AI should behave.
user → Represents user input.
assistant → Represents the AI’s generated response.
The Server Action returns a structured Result Response that contains Groq’s AI-generated reply. You can then display this response in your application’s UI as a message, summary, or dynamic answer.
The GroqConnector_Demo module demonstrates a real-world use case — summarizing long paragraphs into concise summaries using Groq’s AI. This demo highlights Groq’s low latency and high-speed inference capabilities in an OutSystems application.
API Key Configuration: Store your Groq API key securely in your app’s Site Properties.
Message Roles:
system: “You are a helpful assistant that summarizes long text into a short and clear paragraph.”
user: Contains the paragraph entered by the user.
The user enters a long paragraph.
On clicking Summarize, the connector sends messages to Groq’s model.
Groq processes and returns the summarized output.
The summary is displayed instantly in the app UI.
Text to Summarize: Input field for long text.
Summarize Button: Sends the request to Groq.
Summary Field: Displays the AI-generated summary result.
Download and publish GroqConnector_Demo from Forge.
Set your API key in the GroqApiKey site property.
{ "role": "system", "content": "You are a helpful assistant that summarizes long text into a short and clear paragraph." },
{ "role": "user", "content": <user input paragraph> }
Call the Server Action:
response = GroqConnector.ServerAction(
api_key = GetSiteProperty("Groq_ApiKey"),
model_id = "llama3-70b",
messages = messages
)
SummarizedResultField.Text = response.result
🔐 API Key Security: Store API keys in Site Properties or environment variables. Never hard-code them in client logic.
🧠 Structured Prompts: Define clear role-based prompts for consistent AI responses.
⚙️ Error Handling: Gracefully handle API timeouts or failures with fallback messages.
🪶 Model Selection: Choose the model that best fits your task — e.g., llama3-70b for conversational AI or mixtral-8x7b for summarization.
Issue
Possible Solution
❌ Invalid API Key
Verify your key in Groq’s developer console and ensure it’s active.
🕓 No Response / Timeout
Check network connectivity or Groq platform status.
🤔 Unexpected Output
Refine your system prompt or adjust message phrasing.
The Groq Connector is the fastest and most efficient way to bring AI intelligence into your OutSystems applications. With minimal setup and lightning-fast responses, it allows developers to embed summarization, chat, and AI-driven insights — all powered by Groq’s high-performance inference engine ⚡.