<aside>

Welcome to the Copyl AI Gateway! This service allows you to integrate your own AI models or utilize preconfigured AI APIs (e.g., OpenAI, Hugging Face) directly within your integrations. You can call AI endpoints, register your own, and use them seamlessly in your Integrations and Action scripts.

</aside>

Purpose

Copyl Brainstorm is a cloud-agnostic ML/AI service layer designed to integrate seamlessly with the Copyl Integration Platform (CIP). It enables advanced analytics, anomaly detection, trend forecasting, and intelligent automation based on sensor data, API logs, and business events.

Copyl Brainstorm helps organizations make faster, smarter, and more proactive decisions using their own data flows.

Key Features

Flexible Deployment

Brainstorm can be hosted fully by Copyl, distributed across multiple cloud providers, deployed as fog computing nodes closer to devices, or installed entirely on-premises behind your firewall.

image.png

Model Description Ideal For
Hosted Fully managed by Copyl, including JobQueue and Neuron Agents SaaS customers
Distributed JobQueue hosted by Copyl, Neuron Agents deployed on customer’s choice of AWS, Azure, or GCP Hybrid cloud customers
Fog Compute Neuron Agents running on edge devices or private clouds Industrial IoT, low-latency applications
On-Premises Entire Brainstorm stack deployed inside the customer's infrastructure Highly regulated sectors (finance, healthcare, defense)

Edge-to-Cloud Intelligence

Brainstorm’s architecture separates job coordination and model execution, enabling dynamic scaling and resilience even in network-constrained environments.

Brainstorm consists of key building blocks:

Anomaly Detection

Predictive Forecasting

Root Cause Analysis (beta)

Segmentation & Clustering

Custom Model / Bring Your Own Model (BYOM)

HuggingFace Model Execution

Feedback Loop

Cloud-Agnostic ML Inference

Key Features

  1. Prebuilt AI Endpoints: Use predefined APIs like ChatGPT and HuggingFace.
  2. Custom AI Endpoints: Register your own AI models or APIs.
  3. Seamless Integration: Call AI endpoints directly in the Integration scripts.

Use Case 1 - using AI to enhance results in an Integration

Your Integrations is having data from the Trigger that you want to transform with AI, or analyze it and send the result to another data storage.

Use Case 2 - always use AI when calling an API endpoint or db query

Your Integration App for Contract Management always run an AI analysis on the uploaded contract to make sure it complies with all your policies.

See also

Scripting Support in Integrations

How to Use the AI Gateway

1. Predefined AI Endpoint Example

You can start using predefined endpoints such as chatgpt without additional setup.

Example JavaScript that you can add to your Integration or Action:

var prompt = "Summarize this text: The quick brown fox jumps over the lazy dog.";
var response = await callAI("chatgpt", JSON.stringify({
    prompt: prompt,
    max_tokens: 100
}));
log(response);

2. Register Your Custom AI Endpoint

If you have your own AI model or service, you can register it for use in JINT scripts.

Step 1: Register the Endpoint

Send a POST request to the AI Gateway to register your endpoint.

Endpoint:

POST <https://api.copyl.com/**Brainstorm**/AIGateway/register>

Request Body:

{
    "name": "myCustomAI",
    "url": "<https://your-ai-service.com/api>"
}

Response:

{
    "success": true,
    "message": "Endpoint registered successfully."
}

Step 2: Call Your Endpoint

After registering, you can use the endpoint in your Copyl Integration and Action scripts.

Example Script: