📚 Documentation • 🖥️ Application • 🏠 Home
- Sign up for an Autoblocks account at https://app.autoblocks.ai
- Grab your Autoblocks ingestion key from https://app.autoblocks.ai/settings/api-keys
- Grab your OpenAI API key from https://platform.openai.com/account/api-keys
- Create a file named
.env
in this folder and include the following environment variables:
OPENAI_API_KEY=<your-openai-api-key>
AUTOBLOCKS_INGESTION_KEY=<your-autoblocks-ingestion-key>
Go to https://app.autoblocks.ai/prompts and click on Create Prompt.
Create a prompt like this and deploy it.
Then, get your API key from here and set it as an environment variable:
export AUTOBLOCKS_API_KEY=...
This file instructs the CLI which prompts and which of their versions
to autogenerate code for. One has already been created for you in ./.autoblocks.yml
.
poetry install
This CLI will autogenerate classes for you to use to interact with the prompts you've created in the UI.
poetry run prompts generate
poetry run start