Skip to main content
Create a new prompt with the specified content. The prompt is created at version 1.

Parameters

PromptMessage

Response

Returns the created Prompt object.

Examples

Basic Usage

With Custom Slug

Multi-Turn Conversation

If you don’t provide a slug, one will be auto-generated from the name. Slugs must be lowercase with hyphens only.

Error Handling