Overview
Create a new prompt for use with your AI agents. If a prompt with the same name already exists, a new version is automatically created with an incremented version number.
Prompts support two types:
main — Used as the agent’s system prompt / instructions
analysis — Used for post-conversation analysis
Authentication
Your eigi.ai API key. Must be prefixed with vk_.
Request Body
Unique prompt name (1-100 characters). If a prompt with this name exists, a new version is created.
The prompt text content — the instructions or system message for your agent.
Optional metadata for the prompt. Type of prompt: main for agent prompts, analysis for conversation analysis prompts.
Response
Version number (starts at 1, auto-increments for existing prompts).
Metadata including prompt_type.
ISO 8601 creation timestamp.
ISO 8601 last update timestamp.
API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.
Unique prompt name (1-100 characters)
Required string length: 1 - 100
Minimum string length: 1
Example: "You are a helpful customer support agent for TechCorp. Be polite, professional, and solve customer issues efficiently."
Example: { "prompt_type" : "main" } Prompt created successfully
Version number of the prompt