Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

📚 Documentation   •   🖥️ Application   •   🏠 Home

Getting started

OPENAI_API_KEY=<your-openai-api-key>
AUTOBLOCKS_INGESTION_KEY=<your-autoblocks-ingestion-key>
AUTOBLOCKS_API_KEY=<your-autoblocks-api-key>

Create a prompt

Go to https://app.autoblocks.ai/prompts and click on Create Prompt.

example-prompt

Create a prompt like this and deploy it.

Install Dependencies

npm install

Run the script

Without Prompt SDK:

npm run start

With Prompt SDK:

export AUTOBLOCKS_API_KEY=npm run start-with-prompt-sdk

More info on Prompt SDK can be found here.

View logs in Autoblocks

After you run the script, you will see a link to view the trace in your console. You can also navigate directly to the explore page to see the trace.