# MotherDuck

### How to Connect Airbook to MotherDuck <a href="#how-to-connect-airbook-to-motherduck" id="how-to-connect-airbook-to-motherduck"></a>

Connecting Airbook to MotherDuck is a straightforward process. MotherDuck is a new serverless analytics platform, and here's a guide to connect your MotherDuck data to Airbook.

Follow these steps to set up your connection

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

### Step-by-Step Guide <a href="#step-by-step-guide" id="step-by-step-guide"></a>

1. **Log in to MotherDuck:**
   * Start by logging into your MotherDuck account.
2. **Retrieve Service Token:**
   * Once logged in, click on your username in the upper right corner and go to "Settings."
   * You will see a service token displayed. Copy this token as you will need it to authenticate the connection with Airbook.
3. **Navigate to Airbook Connections:**
   * Switch over to your Airbook workspace and click on the "Connections" tab located on the sidebar.
4. **Select MotherDuck Connector:**
   * From the list of available data sources, select "MotherDuck."
5. **Paste the Service Token:**
   * You will be prompted to enter your service token. Paste the token you copied from MotherDuck into the provided field.
6. **Confirm the Connection:**
   * After pasting the service token, click on the "Confirm" button to establish the connection.
7. **Verify Connection:**
   * You should now see that your MotherDuck account is connected to Airbook.

#### Querying Data from MotherDuck <a href="#querying-data-from-motherduck" id="querying-data-from-motherduck"></a>

Now that your MotherDuck account is connected, querying data is simple:

1. **Go to the Query Section:**
   * Navigate to the query section in your Airbook workspace.
2. **Run a Query:**
   * Enter your SQL query to fetch data from MotherDuck and hit the "Run Query" button.
3. **View Results:**
   * Your query results will be displayed, showing how easy it is to access and analyze data from MotherDuck within Airbook.


---

# 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.airbook.io/connect/motherduck.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.
