This plugin allows users to connect various services through Composio to extract memories and import them into their OMI account.
- Connect Notion accounts via OAuth
- Extract memories and facts from Notion pages and databases
- Import extracted memories into OMI
- Mobile-optimized UI for easy use on mobile devices
- Python 3.8+
- OMI App with API credentials
- Notion OAuth credentials
- Create a new OMI app in the OMI mobile app
- Enable the "External Integration" capability
- Under "Integration Actions," enable "Create Memories"
- Generate an API key
- Note down your APP_ID and API_KEY
- Go to Notion Developers and create a new integration
- Set the "Redirect URI" to your callback URL (e.g.,
https://your-domain.com/api/notion/callback) - Note down your Client ID and Client Secret
- Copy
.env.templateto.env - Fill in your OMI and Notion credentials:
OMI_APP_ID=your_app_id_here OMI_API_KEY=your_api_key_here NOTION_CLIENT_ID=your_notion_client_id_here NOTION_CLIENT_SECRET=your_notion_client_secret_here NOTION_REDIRECT_URI=https://your-domain.com/api/notion/callback
# Install dependencies
pip install -r requirements.txt
# Run the server
uvicorn main:app --reload# Build the Docker image
docker build -t omi-composio .
# Run the container
docker run -p 8000:8000 --env-file .env omi-composio- Navigate to the homepage
- Connect your Notion account
- Search for pages in your Notion workspace
- Select a page to extract memories from
- Review and import memories into OMI
- The plugin authenticates users with Notion via OAuth
- Upon selection of a Notion page, the plugin extracts the text content
- The text is analyzed to identify potential memories/facts about the user
- Memories are formatted as "User likes...", "User enjoys...", etc.
- These memories are then imported into OMI using the Integration API
This plugin is designed to work with Composio, a platform for connecting various tools and services. Composio provides a unified interface for users to connect their accounts and manage data flows between different platforms.
Contributions are welcome! Please feel free to submit a Pull Request.