# Estuary

A video walkthrough can be found below:

{% embed url="<https://youtu.be/920VzW6jE1E?feature=shared>" %}

## Prerequisites

1. WarpStream account - get access to WarpStream by registering [here](https://console.warpstream.com/signup).
2. Estuary account - get access to Estuary by registering [here](https://dashboard.estuary.dev/register).
3. WarpStream cluster up and running.

## Step 1: Create a topic in your WarpStream cluster

You will need a WarpStream cluster, credentials, and at least one Topic with data available. If you do not have an active topic, steps 1 and 2 of this guide will provide a simple example to test with.

Obtain the Bootstrap Broker from the WarpStream console by navigating to your cluster and clicking the Connect tab. If you don't have SASL credentials yet, you can also [create a set of credentials](/warpstream/kafka/manage-security/sasl-authentication.md#creating-credentials) from the console.

Store these values for easy reference; they will be needed in Upsolver. If you are going to produce records to your topic from the command line, then export them as environment variables in a terminal window:

```bash
export BOOTSTRAP_HOST=<YOUR_BOOTSTRAP_BROKER> \
SASL_USERNAME=<YOUR_SASL_USERNAME> \
SASL_PASSWORD=<YOUR_SASL_PASSWORD>;
```

Then, create a topic in the WarpStream console if you don't already have one.

## Step 2: Produce some records

You can use the WarpStream CLI to produce messages to your topic, in this case `estuary_demo`:

{% code overflow="wrap" %}

```bash
warpstream kcmd -bootstrap-host $BOOTSTRAP_HOST -tls -username $SASL_USERNAME -password $SASL_PASSWORD -type produce -topic estuary_demo --records '{"action": "click", "user_id": "user_0", "page_id": "home"},,{"action": "hover", "user_id": "user_0", "page_id": "home"},,{"action": "scroll", "user_id": "user_0", "page_id": "home"},,{"action": "click", "user_id": "user_1", "page_id": "home"},,{"action": "click", "user_id": "user_1", "page_id": "home"},,{"action": "click", "user_id": "user_2", "page_id": "home"}'
```

{% endcode %}

Note that the WarpStream CLI uses double commas (`,,)` as a delimiter between JSON records.

## Step 3: Connect Estuary to WarpStream

In the Estuary Web Console, select **Sources** from the left-hand navigation. Then click "**+ NEW CAPTURE.**" Search/select "**Kafka**":

<figure><img src="/files/M146tm48nY537Z3nlOid" alt=""><figcaption></figcaption></figure>

Next, fill in your WarpStream endpoint configuration in Estuary, as illustrated below:

<figure><img src="/files/wr3mjJwrzI9ZX7oOSdXf" alt=""><figcaption></figcaption></figure>

That's everything that you will need from WarpStream.

## Next Steps

With WarpStream configured, all that's left is to choose your **Destination** in Estuary and configure it as needed.

Next, check out the WarpStream docs for configuring the [WarpStream Agent](/warpstream/agent-setup/deploy.md), or review the [Estuary docs](https://docs.estuary.dev/) to learn more about what is possible with WarpStream and Estuary!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.warpstream.com/warpstream/reference/integrations/estuary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
