Developing Prompt-Based Apps for OMI
Prompt-based apps allow you to customize OMI's behavior and enhance its ability to process information. This guide will walk you through creating both Chat Prompts and Memory Prompts.
Types of Prompt-Based Apps
1. 💬 Chat Prompts
Chat prompts alter OMI's conversational style and knowledge base. They allow you to create specialized versions of OMI for different contexts or expertise areas.
Example Use Case
Create a app that makes OMI communicate like a specific expert or professional in a given field, such as a historian, scientist, or creative writer.
2. 🧠 Memory Prompts
Memory prompts analyze conversations and extract specific information based on predefined criteria. They're useful for summarization, key point extraction, or identifying action items from discussions.
Example Use Case
Develop a app that extracts action items from a meeting transcript and compiles them into a to-do list.
Note: It's possible to create apps that combine both chat and memory capabilities for more comprehensive functionality.
Creating a Prompt-Based App
Step 1: Define Your App
Decide whether you're creating a Chat Prompt, a Memory Prompt, or a combination of both, and outline its specific purpose.
Step 2: Write Your Prompt
Craft your prompt carefully. For Chat Prompts, focus on defining the personality and knowledge base. For Memory Prompts, clearly specify the information to be extracted and how it should be formatted.
Step 3: Test Your App
Before submitting, it's crucial to test your app to ensure it behaves as expected.
For Memory Prompts:
- Download the OMI app on your device.
- Enable developer settings in the app.
- Open a memory within the app.
- Click in the top right corner (3 dots menu).
- In the developer tools section, you can run your prompt to test its functionality.
For Chat Prompts:
Currently, there isn't an easy way to test chat prompts directly within the app. We're working on improving this process. In the meantime, you can use your best judgment and thorough proofreading to ensure your chat prompt will produce the desired results.
Step 4: Prepare Your App for Submission
Once you're satisfied with your app's performance, you'll need to create a JSON object that defines your app for submission. Here's a template:
{
"id": "your-app-id",
"name": "Your App Name",
"author": "Your Name",
"description": "A brief description of what your app does",
"image": "/apps/logos/your-app-logo.jpg",
"memories": false,
"chat": true,
"capabilities": [
"chat"
],
// or ["memories"] or ["chat", "memories"]
"chat_prompt": "Your chat prompt here",
// for Chat Prompts
"memory_prompt": "Your memory prompt here",
// for Memory Prompts
"deleted": false
}