Documentation

How to Add Actions in O-mega

Learn how to add and configure actions for your O-mega tools, enabling your AI agents to interact with external services and perform specific tasks.

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

  1. Navigate to your chat interface
  2. Click the '+ Add actions' button in the top right
  3. Select 'Add new action'

2. Tool Selection

  1. Choose from existing tools in the dropdown menu
  2. Or click 'Add New Tool' if your service isn't listed
  3. 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

  1. Provide the API documentation URL
  2. Enter a clear description of what the action does
  3. The system will automatically:
    • Analyze the API documentation
    • Generate necessary code
    • Create parameter templates

4. Authentication Setup

  1. Select authentication method:
    Authentication Type: "API Key" or "OAuth2"
    Credential Name: "Support Platform API Key"
    API Key Location: "Header"
  2. Enter your API credentials
  3. Test the authentication

5. Testing the Action

  1. Click 'Test Action' in the configuration panel
  2. Enter test parameters:
    Parameter: "ticket_id"
    Test Value: "12345"
  3. Review the test results
  4. Check error handling if needed

What's Next?

After adding your action, you can:

  • Assign the action to specific agents
  • Create action combinations for complex workflows
  • Monitor action usage and performance
  • Fine-tune parameters and error handling

Remember: Always test your actions thoroughly before deploying them to production agents. Regular monitoring of action performance and API responses will help maintain reliable agent operations.