How to Add Actions in O-mega
Overview
Actions are the building blocks that enable your AI agents to interact with external services and perform specific tasks. This guide will show you how to add and configure actions for your tools in O-mega.
Requirements
- Active O-mega account
- API documentation URL for the service you want to integrate
- Valid API credentials (API key or OAuth tokens)
Introduction
Actions in O-mega define what your AI agents can do with external tools and services. Each action represents a specific API endpoint that your agents can use to perform tasks like sending emails, checking ticket status, or analyzing data.
Step-by-Step Guide
1. Access Action Creation
- Navigate to your chat interface
- Click the '+ Add actions' button in the top right
- Select 'Add new action'
2. Tool Selection
- Choose from existing tools in the dropdown menu
- Or click 'Add New Tool' if your service isn't listed
- For new tools, provide:
Tool Name: "Customer Support Platform" Tool Description: "Integration with our support ticket system" API Base URL: "https://api.support-platform.com/v1"
3. Action Configuration
- Provide the API documentation URL
- Enter a clear description of what the action does
- The system will automatically:
- Analyze the API documentation
- Generate necessary code
- Create parameter templates
4. Authentication Setup
- Select authentication method:
Authentication Type: "API Key" or "OAuth2" Credential Name: "Support Platform API Key" API Key Location: "Header"
- Enter your API credentials
- Test the authentication
5. Testing the Action
- Click 'Test Action' in the configuration panel
- Enter test parameters:
Parameter: "ticket_id" Test Value: "12345"
- Review the test results
- Check error handling if needed