Skip to main content

Setup

To start using Ottic, install the SDK as follows:
1

Install Ottic

Install the Ottic Node.js SDK.
2

Copy your Ottic API key

Visit the Integrations page to obtain your Ottic API key.
This API key is required to enable published prompts in your application.
3

Use a published prompt in production

The following snippet demonstrates how to use a tested and published prompt in your application:
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:
This will return the prompt as-is, without any replacements.