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

# Integrations

> Learn how to use our integrations

## Setup

To start using Ottic, install the SDK as follows:

<Steps>
  <Step title="Install Ottic">
    Install the Ottic Node.js SDK.

    <CodeGroup>
      ```bash npm
      npm install ottic
      ```

      ```bash yarn
      yarn add ottic
      ```
    </CodeGroup>
  </Step>

  <Step title="Copy your Ottic API key">
    Visit the [Integrations](https://app.ottic.ai/integrations) page to obtain your Ottic API key.\
    <Note>This API key is required to enable published prompts in your application.</Note>
  </Step>

  <Step title="Use a published prompt in production">
    The following snippet demonstrates how to use a tested and published prompt in your application:

    <CodeGroup>
      ```js
      const ottic = new OtticAI({ apiKey: OTTIC_API_KEY });
      const livePrompt = await ottic.prompts.render(promptId, {
        variable: "dataset variable",
        variable1: "dataset variable1",
        variable2: "dataset variable2",
      });
      ```
    </CodeGroup>

    This code will return a prompt with placeholders replaced by the provided values. If any variables are missing, they will remain as placeholders.

    To retrieve a prompt with all placeholders intact, use the following code:

    <CodeGroup>
      ```js
      const ottic = new OtticAI({ apiKey: OTTIC_API_KEY });
      const livePrompt = await ottic.prompts.render(promptId);
      ```
    </CodeGroup>

    This will return the prompt as-is, without any replacements.
  </Step>
</Steps>
