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

# export_to_notion

> Export data to Notion. 

## Usage

The following example shows how the step can be used in a recipe.

<Accordion title="Examples" icon="code" defaultOpen="true">
  <Tabs>
    <Tab title="Example 1">
      Export dataset to a Notion page

      ```stan theme={null}
      export_to_notion(ds, {"integration": "MY_NOTION_INTEGRATION", "url": "https://www.notion.so/myworkspace/abc123def456"})
      ```
    </Tab>

    <Tab title="Signature">
      General syntax for using the step in a recipe. Shows the inputs and outputs the step is expected to receive and will produce respectively. For futher details see sections below.

      ```stan theme={null}
      export_to_notion(ds: dataset, {
          "param": value,
          ...
      })
      ```
    </Tab>
  </Tabs>
</Accordion>

## Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally
columns (`ds.first_name`), datasets (`ds` or `ds[["first_name", "last_name"]]`) or models (referenced
by name e.g. `"churn-clf"`).

<Accordion title="Inputs" icon="right-to-bracket">
  <ParamField path="ds" type="dataset" required>
    Dataset to be exported.
  </ParamField>
</Accordion>

<Accordion title="Outputs" icon="right-from-bracket" />

## Configuration

The following parameters can be used to configure the behaviour of the step by including them in
a json object as the last "input" to the step, i.e. `step(..., {"param": "value", ...}) -> (output)`.

<Accordion title="Parameters" defaultOpen="true" icon="sliders">
  <ParamField path="integration" type="string" required>
    Associated integration.
  </ParamField>

  <ParamField path="url" type="string" required>
    Notion Parent Page to write to.
    We will put the table inside this page as a standalone page. Make sure the integration has the relevant permissions.

    Values must match the following regex pattern:

    ```regex theme={null}
    https:\/\/www\.notion\.so\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9]+(\?[a-zA-Z0-9_=&-]*)?
    ```
  </ParamField>
</Accordion>
