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

# n8n integration guide

n8n is a no-/low-code workflow automation framework.

## Create an account

To integrate [SambaCloud](http://cloud.sambanova.ai?utm_source=n8n\&utm_medium=external\&utm_campaign=cloud_signup) with n8n, follow these steps:

## Open or create workflow

Log in to the n8n platform and select the \[+] button. Alternatively, select the **Create Workflow** button to start a new workflow.

<img src="https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/images/docs/integrations/n8n/n8n_new.png?fit=max&auto=format&n=tKEjjixpklKce6C2&q=85&s=3caaf635df60a334ca6a78d74aa91ea6" alt="n8n workflow editor" width="3023" height="1420" data-path="images/docs/integrations/n8n/n8n_new.png" />

## Add OpenAI chat model node

SambaCloud is compatible with the OpenAI API. Use the OpenAI Chat Model node for integration.

<img src="https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/images/docs/integrations/n8n/n8n_openai.png?fit=max&auto=format&n=tKEjjixpklKce6C2&q=85&s=fc4f762eea9432de34a740fdbe0e4943" alt="n8n canvas with OpenAI Chat Model node" width="3024" height="1417" data-path="images/docs/integrations/n8n/n8n_openai.png" />

## Configure your credentials

In the OpenAI Chat Model panel, select the "Credential to connect with" dropdown, and select "Create new credential". Then, enter your **SambaNova API Key** and **Base URL**.

<img src="https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/images/docs/integrations/n8n/n8n_credential.png?fit=max&auto=format&n=tKEjjixpklKce6C2&q=85&s=43c376779b102925efb0f8394dad7f47" alt="n8n OpenAI Chat Model panel showing the Credential to connect with dropdown" style={{ width:"75%" }} width="1067" height="707" data-path="images/docs/integrations/n8n/n8n_credential.png" />

<img src="https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/images/docs/integrations/n8n/n8n_api.png?fit=max&auto=format&n=tKEjjixpklKce6C2&q=85&s=ff80d86b4e50503bdfada289c1888cfb" alt="n8n OpenAI Chat Model panel with SambaNova credentials" width="1184" height="631" data-path="images/docs/integrations/n8n/n8n_api.png" />

## Select the model

Click the **Model** dropdown and select the appropriate model provided by SambaCloud.

<img src="https://mintcdn.com/sambanova-systems/tKEjjixpklKce6C2/images/docs/integrations/n8n/n8n_model.png?fit=max&auto=format&n=tKEjjixpklKce6C2&q=85&s=d345da06a53f4aeba17a06fdc1d9d9eb" alt="n8n OpenAI Chat Model panel showing the Model dropdown" style={{ width:"75%" }} width="1047" height="1060" data-path="images/docs/integrations/n8n/n8n_model.png" />

## Example: Household budgeting agent with SambaCloud and n8n

* For a concrete example, check out [this sample workflow](https://github.com/sambanova/integrations/tree/main/n8n) that builds a simple household budgeting agent.
* It can serve as a template for building more advanced agentic workflows using SambaCloud and n8n.
