Skip to main content

Overview

Prompts are the foundation of your agent’s behavior. eigi.ai provides powerful prompt management tools including AI enhancement, version control, diff viewing, and instant rollback—giving you complete control over your agent’s evolution.

Prompt Editor

Rich Editing Experience

Create and refine prompts with our advanced editor:

Syntax Highlighting

Clear visual formatting for prompt sections and variables

Variable Insertion

Easily insert dynamic variables like customer name, order ID, etc.

Section Templates

Pre-built sections for Identity, Style, Tasks, and Error Handling

Character Count

Track prompt length to optimize for your LLM provider

AI Prompt Enhancement

Intelligent Optimization

Let AI help you create better prompts:
1

Write Your Draft

Create your initial prompt with your requirements
2

Request Enhancement

Click “Enhance with AI” to analyze and improve your prompt
3

Review Suggestions

See specific improvements for clarity, structure, and effectiveness
4

Apply Changes

Accept all suggestions or cherry-pick specific improvements

Enhancement Features

FeatureDescription
Clarity ImprovementsRewrite ambiguous instructions for precision
Structure OptimizationOrganize prompts into clear, logical sections
Best Practice AlignmentApply proven prompting patterns
Voice OptimizationAdapt for natural spoken conversation
Edge Case HandlingAdd instructions for error scenarios

Version Control

Complete History

Every prompt change is tracked automatically:
Never lose work. Every save creates a new version you can reference or restore at any time.

Version Features

Every time you save a prompt, a new version is created with: - Timestamp of the change - Commit message describing what changed - Full snapshot of the prompt content
Add descriptive messages to each version: - “Added error handling for invalid order numbers” - “Improved greeting for warmer tone” - “Updated business hours information”
Browse through all previous versions: - See version timeline - Preview any version - Compare versions side-by-side

Diff Viewer

Compare Changes

See exactly what changed between any two versions:
[Identity]
- You are a helpful customer service agent.
+ You are Sarah, a friendly and knowledgeable customer service specialist at TechCorp.

[Style]
- Be professional.
+ Maintain a warm, professional tone. Use the customer's name when appropriate.
+ Keep responses concise—this is a voice conversation.

[Task]
  1. Greet the customer
- 2. Ask how you can help
+ 2. Ask how you can help today
+ 3. If the issue cannot be resolved, offer to connect with a supervisor

Diff Features

Line-by-Line Comparison

See additions, deletions, and modifications highlighted clearly

Side-by-Side View

View old and new versions next to each other

Inline Changes

Highlight specific word changes within lines

Change Summary

Quick overview of total additions, deletions, and modifications

Rollback

Instant Restoration

Revert to any previous version with one click:
1

Open Version History

Access the version browser from your prompt editor
2

Select Version

Find the version you want to restore (use diff to compare)
3

Preview

Review the full prompt content before restoring
4

Restore

Click “Restore This Version” to revert instantly

Rollback Safety

Rolling back creates a new version, so you never lose the current state. You can always roll forward again if needed.
ActionResult
Restore VersionCreates new version with old content
Original PreservedCurrent version saved in history
Immediate EffectAgent uses restored prompt instantly
Audit TrailRollback noted in version history

Prompt Types

System Prompt

The main instructions that define your agent’s behavior:
[Identity]
You are Maya, a customer support specialist for CloudTech Solutions...

[Style]
- Warm and professional tone
- Concise responses suitable for voice
- Patient and empathetic...

[Tasks]
1. Greet the customer
2. Identify their issue
3. Resolve or escalate...

First Message

The opening message your agent speaks when a call begins:
Hi! Thanks for calling CloudTech Solutions. This is Maya. How can I help you today?

Analysis Prompt

Instructions for post-call analysis (see Call Analysis):
Analyze the conversation and extract:
- Customer sentiment (positive/neutral/negative)
- Issue category
- Resolution status
- Follow-up needed (yes/no)

Dynamic Variables

Using Variables in Prompts

Insert dynamic data that changes per conversation:
VariableDescriptionExample
{{customer_name}}Contact’s name from phonebook”John Smith”
{{order_id}}Order reference number”ORD-12345”
{{appointment_time}}Scheduled time”2:30 PM”
{{custom_field}}Any custom contact dataYour data

Example Usage

[Task]
1. Greet {{customer_name}} by name
2. Reference their order {{order_id}}
3. Confirm their appointment for {{appointment_time}}

Prompt Templates

Starting Points

Use templates for common scenarios:

Customer Support

Troubleshooting, FAQ handling, escalation paths

Sales Qualification

Lead scoring questions, objection handling

Appointment Booking

Availability checking, confirmation, rescheduling

Survey Collection

Question flow, rating scales, feedback capture

Best Practices

Prompt Structure

Use Clear Sections: Organize prompts into Identity, Style, Guidelines, Tasks, and Error Handling sections.
Be Specific: Vague instructions lead to inconsistent behavior. Be explicit about what you want.
Commit Often: Save versions frequently with descriptive messages for easy tracking.

Version Control

Meaningful Messages: Write commit messages that explain WHY you made changes, not just what changed.
Test Before Major Changes: Create a version, test thoroughly, then make significant edits.
Don’t make untested changes to production agents during peak hours. Use the sandbox first.

Troubleshooting

  • Check for conflicting instructions in the prompt - Ensure instructions are explicit, not implied - Try the AI enhancement feature for clarity - Review the diff to see recent changes that might have caused issues
  • Open version history and browse past versions - Use the diff viewer to find the version with the content you need - Restore that version or copy specific sections
  • Focus on essential instructions only - Move detailed knowledge to the Assets/Knowledge Base - Use concise language while maintaining clarity