System Prompt | Hume API

Default system prompt

If you do not specify a system prompt in your configuration, a default system prompt will be applied. You can find our default system prompt on GitHub for reference.

Building your system prompt

Prompts are managed as resources within our API and are version controlled. This enables you to:

Specifying a system prompt

When creating an EVI config through the API, you have two options for specifying your system prompt:

  1. Reference an existing prompt: Specify the ID of a pre-existing, version-controlled Prompt. EVI will use the referenced prompt in the chat session.
curl -X POST https://api.hume.ai/v0/evi/configs \
     -H "X-Hume-Api-Key: <apiKey>" \
     -H "Content-Type: application/json" \
     -d '{
       "evi_version": "3",
       "name": "Sample Config",
       "prompt": {
         "id": "af699d45-2985-42cc-91b9-af9e5da3bac5",
         "version": 0
       }
     }'
  1. Define a new Prompt in the request: Provide the prompt text directly in your configuration request. In this case, a new prompt will be automatically created and associated with the configuration.
curl -X POST https://api.hume.ai/v0/evi/configs \
     -H "X-Hume-Api-Key: <apiKey>" \
     -H "Content-Type: application/json" \
     -d '{
       "evi_version": "3",
       "name": "Sample Config",
       "prompt": {
         "text": "Sample system prompt"
       }
     }'