A guide on how to create and versiona prompt in Keywords AI.
In this guide, we will walk you through the process of creating a new prompt in Keywords AI and how to collaborate with your team.
You can also create a prompt in the API. Here are the 2 endpoints you need to use to create a prompt:
https://api.keywordsai.co/api/prompts/
- Create a new prompt.https://api.keywordsai.co/api/prompts/<prompt_id>/versions/
- Create a new version of a prompt.You can use the POST /prompts/
endpoint to create a new prompt. You need to provide the name, and description of the prompt.
Once you have created a prompt, you can find the prompt ID in the response, or you can go to the Prompts page and find the prompt ID in the prompt details.
You can use the POST /api/prompts/<prompt_id>/versions/
endpoint to create a new version of a prompt. You need to provide the content of the prompt.
You just finished creating your first prompt in the code!