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

Parameters

Pass a CreatePromptOptions object:

PromptMessage

Response

Returns the created Prompt object.

Examples

Basic Usage

With Description and Options

Multi-Turn Conversation

Slugs must be lowercase with hyphens only (e.g., welcome-email).

Error Handling