POST
/
create_template
curl -X POST \
  https://api.berri.ai/create_template \
  -H 'Content-Type: multipart/form-data' \
  -F 'app_config={"advanced": {"intent": "qa_doc", "search": "default"}, "prompt": "Be legal and ethical", "output_length": "256"}'
{
  "template_id": "<string>",
  "app_config": {}
}

Query

app_config
string

Create a configuration for your app. This is a JSON dictionary.

Response

template_id
string

The app configuration you sent is now stored as a template. This is it’s unique id. Use it to automatically spin up chatGPT apps with that exact configuration.

app_config
dictionary

We return back the app config you sent. This is to confirm the parameters that were sent. We also add a score for the prompt (the lower the better), if one was submitted.