LogoLogo
Visit Contextual.ioSign Up
  • Getting Started
    • Welcome
    • Tour: Hello, AI World!
  • TRAINING
    • Basic Developer Training Course
      • Lesson 1: HTTP Agent Introduction
      • Lesson 2: Logging and Error Handling Basics
      • Lesson 3: Event Processing Agent Introduction
  • Services Catalog
    • What's in the Catalog?
      • Intro Patterns
      • Object Type Bundles
    • Browse by Platform
    • All Intro Patterns
      • Anthropic Claude Image Analysis
      • Mistral AI Prompt and Response
      • xAI Grok Prompt and Response
      • DeepSeek Chat Prompt and Response
      • Qwen Chat Prompt and Response
      • Perplexity AI Search and Response
      • Firecrawl Website Scraper
      • Groq Prompt and Response
      • Nyckel Dog Breed Classification
      • RapidAPI ClassifyAI Text Classification
      • RapidAPI YouTube AI Video Summary
      • UnifyAI Model Comparison
      • WebPilot URL Analysis and Summarization
      • OpenAI Assistants Prompt and Response
      • OpenAI Sync
    • All Prebuilt Solutions
      • Invoice AI
      • Lead Generation Form
    • All Object Type Bundles
      • Work Order Management System ITIL Object Type Bundle
        • Work Order
        • User
        • Role
        • Permission
        • Asset
        • Task
        • Action
        • Attachment
        • Comment
        • Notification
        • Audit Log
        • Service Level Agreement
        • Custom Fields
        • Work Order Template
        • Work Order Transition
        • Escalation Policy
        • Tag
  • Components & Data
    • Object Types
      • Data in Contextual
        • Secrets
        • Validation
        • Versioning
      • Examples
      • Creating an Object Type
      • Object Type Details
        • Definition
        • Data Schema
          • Automatic Record Metadata
          • Generated Values
            • Dates and Times
            • UUIDs
          • Frequently Used Validation
          • Disallowing Null Property Values
          • Disallowing Undefined Properties
          • Secrets
          • AI Assistant
          • ID and PrimaryKey Permanence
        • UI Schemas
        • Features
        • Triggers
        • Actions
        • Audit Trail
        • Versions
        • Templates
        • Records
      • Using Object Types in Flows
      • Records
        • Records and Your Tenant API
        • Record Import
    • Flows
      • Nodes
      • Wires
      • Message Object
      • Flow Editor
        • Basics
        • Saving Changes
        • In-Flow Testing with Debugger
        • Restart Agents to Make Changes Active
        • Config
      • Node Reference
        • Common
          • Log Tap
          • Inject
          • Debug
          • Complete
          • Catch
          • Status
          • Link In
          • Link Call
          • Link Out
          • Comment
        • Event
          • Prepare Event
          • Event Start
          • Event End
          • Event Error
        • Object
          • Search Object
          • Get Object
          • Create Object
          • Patch Object
          • Put Object
          • Delete Object
          • Run Action
        • Request
          • Send to Agent
          • HTTP GET
          • HTTP PATCH
          • HTTP PUT
          • HTTP DELETE
          • HTTP POST
          • GQL
          • Produce Message
        • Function
          • Function
          • Switch
          • Change
          • Range
          • Template
          • Delay
          • Trigger
          • Exec
          • Filter
          • Loop
        • Models
          • ML Predict
        • Network
          • MQTT In
          • MQTT Out
          • HTTP In
          • HTTP Response
          • HTTP Request
          • WebSocket In
          • WebSocket Out
          • TCP In
          • TCP Out
          • TCP Request
          • UDP In
          • UDP Out
        • Sequence
          • Split
          • Join
          • Sort
          • Batch
        • Parser
          • csv
          • html
          • json
          • xml
          • yaml
    • Agents
      • Creating an Agent
      • Types of Agents
        • Event to Flow
        • HTTP to Flow
          • Custom Domains
      • How Agents Work
        • Flow Execution
        • HTTP Load Balancing
        • Event Routing
      • Scale and Performance
        • Flow execution
        • Parallel Instances
        • Event Lag Scaling
        • Compute Threshold Scaling
        • Instance Compute Sizing
      • Agent Details
        • Definition
        • Operations
        • Logs
          • Session Log
          • Message Log
        • Audit Trail
        • Versions
      • Using Agents in Flows
    • Connections
      • Creating a Connection
      • Types of Connections
        • Basic
        • Bearer
        • Client Grant
        • Kafka
        • Password Grant
        • Public
        • Pulsar
      • Using Connections in Flows
    • JWKS Profiles
      • Using JWKS Profiles in Your Solution
  • PATTERNS
    • Solution Architecture
      • Events, Messages, Queues
    • Working with Data
      • Search Object Node & Pagination
      • Message Payload Content - Triggers and Actions
    • Industry Cookbooks
      • Field Services
  • Tenants
    • Tenant Workspace
    • Tenant Logs
      • Contextual Log Query Language (CLQL)
        • String Searches
        • Keyword Searches
        • Advanced Operators
    • Tenant API
      • API Keys
        • API Key Settings
        • API Key Permissions
      • Documentation
  • Release Notes
    • 2024
      • 2024.12.09
Powered by GitBook
On this page

Was this helpful?

  1. Components & Data
  2. Agents

Creating an Agent

PreviousAgentsNextTypes of Agents

Last updated 12 months ago

Was this helpful?

Here is a quick guide for creating your first Object Type in Contextual.

  1. Access your Contextual Tenant Workspace

  2. Select Components > Agents from the main menu

  3. Select to Create an Agent

  4. Provide the basic ...

    • Agent Id - permanent, must be unique

    • Agent Name - required, editable

    • Agent Description - optional, editable

    • Agent Type - Specifies the trigger type for the agent:

      • Event to Flow - Agent receives asynchronous events from Object Type triggers or other Agents

      • HTTP to Flow - Agent processing incoming HTTP requests on an agent-specific URL: <agentId>.service.<tenantName>.my.contextual.IO

    • Flow - once you specify the agent type, a drop-down list of available flows will appear and allow you to select a flow to be used for this agent.

    • Entry Point - if the flow supports more than one entry point, then a drop-down will appear that allows you to select the entry point for this specific agent deployment.

    • Image (version) - specifies the version of the agent runtime to be used for this agent.

    • Parallel Instance Scaling Type - allows for the specification of the auto-scaling type:

      • Compute Threshold - specifies a percentage CPU threshold which if exceeded consistently, will cause additional instances of the agent to be deployed.

      • Event Lag - specifies the number of unprocessed events which, if exceeded, will cause additional instances of hte agent to be deployed.

    • Parallel Instances - specifies the number of agents to be deployed as a minimum and a maximum number of instances

      • Minimum - the minimum number of instances must be at least 1 but can be more.

      • Maximum - the maxinum number of instances must be greater than or equal to the minimum, but can be more.

      • Note: if the minimum and maximum number of instances are the same, then auto-scaling is effectively disabled.

    • Event Lag Threshold - if "Event Lag" is selected for the scaling type, then this field specifies the number of unprocessed events which, if exceeded, will trigger the deployment of an additional agent.

    • Instance Compute - if "Compute Threshold" is selected for the scaling type, then this field specifies the percentage of CPU utilization which, if exceeded, will trigger the deployment of an additional agent.

    • Instance Compute - specifies the size of the agent (small, medium, large). The agent sizes corresponding to a specific mCPU capacity assigned to the agent.

    • Environment Variables - allows the user to add environment variable name and value pairs that are accessible at runtime by the flow that is being executed, allowing for flows to be made configurable based on the environment variables provided.

  5. Click Create

Definition