# n8n Integration

URL: https://interfaze.ai/docs/integrations/n8n-integration

Learn how to integrate Interfaze AI with n8n workflows using the OpenAI Chat Model node.

Follow these step-by-step instructions to configure Interfaze with n8n:

## Step 1: Add the OpenAI Chat Model

![Step 1: Add OpenAI Chat Model](https://interfaze.ai/integrations/n8n/1.png)

1. Create a new workflow in n8n
2. Click on the **"+"** button to add a new node
3. Search for **"OpenAI"** and select the **OpenAI Chat Model** node

## Step 2: Configure Settings

![Step 2: Configure Settings](https://interfaze.ai/integrations/n8n/2.png)

1. Double-click the **OpenAI Chat Model** node to open its configuration
2. Click the **pencil** icon beside **Credential** to create a new one
3. This is where you’ll configure the connection to Interfaze

## Step 3: Add New Credentials

![Step 3: Add New Credentials](https://interfaze.ai/integrations/n8n/3.png)

1. In the **OpenAI Chat Model** node settings, find the **Credential** field
2. Click on **"Create New Credential"**
3. This will open the credential creation dialog

## Step 4: Enter Your Interfaze API Key

![Step 4: Add Interfaze API Key](https://interfaze.ai/integrations/n8n/4.png)

1. In the credential dialog, you’ll see fields for API configuration
2. Enter your **Interfaze API key** in the **API Key** field
3. Keep this key secure and never share it publicly

## Step 5: Retrieve the API Key from the Dashboard

![Step 5: Get API Key from Dashboard](https://interfaze.ai/integrations/n8n/5.png)

1. Go to the [Interfaze Dashboard](https://interfaze.ai/dashboard)
2. Navigate to the **API Keys** section
3. Copy your API key
4. Paste it into the **API Key** field in n8n
5. Click **"Save"** to store the credential

## Step 6: Update the Base URL

![Step 6: Change Base URL](https://interfaze.ai/integrations/n8n/6.png)

1. In the **OpenAI Chat Model** node settings, find the **Base URL** field
2. Change the default URL to: `https://api.interfaze.ai/v1`
3. This ensures n8n uses Interfaze’s API instead of OpenAI’s

## Step 7: Set the Model ID

![Step 7: Change Model ID](https://interfaze.ai/integrations/n8n/7.png)

1. In the **Model** field, change the default model to: `interfaze-beta`
2. This specifies which Interfaze model will handle your requests

## Step 8: Test the Connection

![Step 8: Open Chat](https://interfaze.ai/integrations/n8n/8.png)

1. Once all settings are configured, click **"Open Chat"** or **"Execute Node"**
2. This will test your connection to Interfaze
3. You can now start building workflows that use Interfaze’s AI capabilities

## You’re All Set!

Your n8n workflow is now connected to Interfaze AI. You can:

- Add more nodes to create complex workflows
- Use the **OpenAI Chat Model** node to generate content, analyze data, or make decisions
- Connect with other services like email, databases, or webhooks
- Build intelligent automations powered by AI

## Next Steps

- **Test your setup**: Send a simple message to confirm everything works
- **Explore workflows**: Browse n8n’s workflow templates for inspiration
- **Build your automation**: Create workflows tailored to your business needs
