> ## Documentation Index
> Fetch the complete documentation index at: https://docs.release0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to integrate your Agent with Groq

> Learn how to integrate Groq for ultra-fast AI inference and high-performance chatbot responses.

Integrating Release0 with **Groq** enables ultra-fast AI inference, allowing chatbots to generate responses using Groq’s high-performance LLMs.

## Prerequisites

Before integrating Groq with Release0, ensure you have a **Groq API key**.

## Steps to Integrate

### 1. Get Your Groq API Key

1. Sign up at [Groq Cloud](https://groq.com).
2. Navigate to **API Keys**.
3. Generate and copy your **API key**.

## 2. Configuring Groq element

1. Copy the API key and paste it in the OpenRouter element
2. Select a model from the available list.
3. **Provide Messages**:
   * Create a variable for storing **chat history** (e.g., `Chat history`).
   * Append user and assistant messages sequentially to ensure conversational context.

<Frame style={{ maxWidth: '600px' }}>
  <img src="https://mintcdn.com/release0-13d037a7/zvlYXMCad2PgakaD/images/elements/integrations/groq.png?fit=max&auto=format&n=zvlYXMCad2PgakaD&q=85&s=aa4298d09cafe66eb68eb893dc96e2d8" alt="Release0.com - Groq element" width="612" height="620" data-path="images/elements/integrations/groq.png" />
</Frame>

#### Example Chat Flow:

* **User Input**: `{{User Message}}` (Captured via a “user input text” element).
* **Assistant Reply**: `{{Assistant Message}}` (Generated by the Groq element).

**Set Variables**:

* Define the variable for appending the assistant response (`Append {{Assistant Message}} in Chat history`).

### 3. Test the Integration

* Send a test query to ensure Groq generates a response.
* Verify output formatting and accuracy.
