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

# Pipedream Integration

> A guide to integrate your Library to thousands of Apps on Pipedream

<Info>
  Why we love Pipedream: Pipedream gives you up to 15 minute timeouts compared to Zapier's 30 seconds, which is almost necessary when it comes to long outputs
  with GPT-4.
</Info>

## Prerequisites

* A Pipedream account
* A Libraria account and library

## Step 0: Get your Libraria API Key

* Select your team on the Side Nav, and click `Manage Team`
* Copy your `API Key`, or if it doesn't exist click `Generate`

## Step 1: Create a new workflow on Pipedream

* Create a new project and workflow on Pipedream

## Step 2: Create a Trigger

* Select a trigger to call your API. Try an email (will run your workflow if you send it to the specified email).
* Send an email to the specified email

## Step 3: Create a Libraria Node

* Next press `+` and create a new node on your workflow
* Search and select `Libraria`
* Paste your `API Key` fetched on [Step 0](#step-0)
* Select `Create a query`
* Get the path of the content from the previous node.

<Frame caption="Find the content you sent from the email or trigger and select &#x22;Copy Path&#x22;">
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/chat-integration/select-path-email.png" alt="path of content" />
</Frame>

* Paste the path into the `Query` input box as a template variable

<Frame caption="Paste the path in the &#x22;Query&#x22; input box as a template variable">
  <img src="https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/chat-integration/create-query-input.png" alt="query input" />
</Frame>

* Press Test Run. Wait for the output of your query

<Warning>
  If you get a timeout error running the "create\_query" node, increase the timeout of your workflow settings to 120 seconds.
</Warning>

## Step 4: Select what to do with your Libraria output

* Send over your output for your query with any one of Pipedream's thousands of apps.
