DocsStarting from scratch

Starting from scratch

Start a new PromptQL project

Make sure you have the alpha version of the CLI to use this example.
ddn update-cli --version v2.12.0-alpha.2
ddn supergraph init my-assistant --with-promptql
cd my-assistant

Initialize the project on Hasura DDN:

ddn project init

Add your API key

echo 'ANTHROPIC_API_KEY=your-anthropic-api-key' >> .env

Start your assistant

ddn run docker-start

From the project directory, run:

ddn console --local

This should open up your browser (or print a browser URL) for opening up your console. It’ll typically be something like: https://console.hasura.io/local?engine=localhost:3280&promptql=localhost:3282.

Say hi!

The console is a client-side web app hosted at console.hasura.io and it connects to your local PromptQL API and data sources. Your data is not sent or saved anywhere else.

Head over to the console and say hi to your AI!

> Hi!