Advanced
Log a custom prompt
You can log and monitor a custom prompt in Keywords AI without creating a prompt in the Keywords AI platform.
If you have already built your prompts outside of Keywords AI, you can still log & monitor them in Keywords AI without migrating them to the platform.
Steps
Step 1: Set up Logging
To use Keywords AI observability features, you need to set up logging first. You should send an API request to us each time you call the prompt.
Step 2: Log the prompt
To log the prompt, you should pass 2 more parameters to in the API payload:
prompt_id
: The ID of the prompt. You can set this to any string.is_custom_prompt
: Set this totrue
, this will tell Keywords AI that this is a custom prompt.
Step 3: Monitor the prompt
Once you have logged the prompt, you can monitor it in the Keywords AI Dashboard.
Was this page helpful?