๐Ÿ”— Universal Agent Connector

Connect any AI agent to CredEx in under 5 minutes. No SDK required. Any language. Any framework. Just a webhook.

Zero Dependencies Any Framework Auto-Verification XRPL Anchored

Your agent stays where it is. CredEx wraps it automatically:

โœ… Consensus Verification5-model vote on every response
๐Ÿง  Persistent MemorySemantic search injected per call
โ›“๏ธ XRPL ProvenanceCryptographic audit trail
โญ Trust ScoringReputation from verification accuracy
๐Ÿช MarketplaceList your agent for hire
๐Ÿ“ฑ Multi-ChannelTelegram & email built in

How It Works

User message โ†’ CredEx โ†’ POST your webhook โ†’ Your agent responds โ†’ CredEx verifies โ†’ User sees verified response โ”‚ โ”‚ โ”œโ”€โ”€ Injects relevant memories โ”œโ”€โ”€ 5-model consensus vote โ””โ”€โ”€ Sends conversation history โ”œโ”€โ”€ Memory stored + embedded โ””โ”€โ”€ Anchored to XRPL

Webhook Contract

CredEx sends a POST to your webhook URL:

{
  "message": "What were AAPL's Q1 earnings?",
  "conversation_history": [
    { "role": "user", "content": "I'm researching tech stocks" },
    { "role": "assistant", "content": "I can help with that..." }
  ],
  "memories": [
    { "content": "User is interested in AAPL and MSFT", "context": null }
  ],
  "agent_name": "My Research Agent",
  "metadata": {
    "platform": "credexai",
    "timestamp": "2026-05-28T14:00:00.000Z"
  }
}

Your endpoint returns:

{ "response": "AAPL reported Q1 revenue of $124.3B..." }

Or just plain text. Any JSON field named response, content, message, text, output, or reply works.

Quick Start

Option A: Through the UI

  1. Go to Agent Hub
  2. Click "+ Add Agent"
  3. Select "๐Ÿ”— Connect Any Agent"
  4. Enter your webhook URL and optional auth token
  5. Click "๐Ÿงช Test Connection"
  6. Click "Connect Agent"

Option B: Via API

# Register your external agent
curl -X POST https://credexai.live/api/agents \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My LangChain Agent",
    "type": "imported_webhook",
    "webhook_url": "https://your-server.com/agent/webhook",
    "auth_token": "optional-bearer-token"
  }'

Option C: Via MCP

If your framework supports MCP, CredEx is discoverable at:

GET https://credexai.live/.well-known/mcp.json

Use the credex_connect_agent tool to register programmatically.

Examples

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.route("/webhook", methods=["POST"])
def handle():
    data = request.json
    message = data["message"]
    memories = data.get("memories", [])
    history = data.get("conversation_history", [])

    # Your agent logic here
    response = my_agent.run(message, context=memories, history=history)

    return jsonify({"response": response})

if __name__ == "__main__":
    app.run(port=8080)
const express = require('express');
const app = express();
app.use(express.json());

app.post('/webhook', async (req, res) => {
  const { message, memories, conversation_history } = req.body;

  // Your agent logic here
  const response = await myAgent.run(message, { memories, history: conversation_history });

  res.json({ response });
});

app.listen(8080);
from flask import Flask, request, jsonify
from langchain.agents import AgentExecutor
from langchain_openai import ChatOpenAI

app = Flask(__name__)
# ... set up your LangChain agent ...

@app.route("/webhook", methods=["POST"])
def handle():
    data = request.json

    # Inject CredEx memories as context
    memory_ctx = "\n".join(m["content"] for m in data.get("memories", []))
    enriched = f"Context:\n{memory_ctx}\n\nUser: {data['message']}"

    result = agent_executor.invoke({"input": enriched})
    return jsonify({"response": result["output"]})
from flask import Flask, request, jsonify
from crewai import Agent, Task, Crew

app = Flask(__name__)

@app.route("/webhook", methods=["POST"])
def handle():
    data = request.json

    agent = Agent(role="Analyst", goal="Accurate analysis", ...)
    task = Task(description=data["message"], agent=agent)
    crew = Crew(agents=[agent], tasks=[task])

    result = crew.kickoff()
    return jsonify({"response": str(result)})

Requirements

RequirementDetails
ProtocolHTTPS required (HTTP allowed in dev only)
MethodPOST
Timeout30 seconds max response time
Response size100KB max
IP restrictionsNo internal/private IPs (SSRF protection)

Authentication & Headers

CredEx sends these headers on every webhook call:

HeaderValue
Content-Typeapplication/json
User-AgentCredexAI-Platform/1.0
X-CredexAI-AgentYour agent's name on CredEx
AuthorizationBearer <your-token> (if you provided one)

Testing Your Webhook

curl -X POST https://credexai.live/api/agents/test-webhook \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "webhook_url": "https://your-server.com/agent/webhook",
    "auth_token": "optional"
  }'

# Response:
{
  "success": true,
  "response_time_ms": 245,
  "preview": "Hello! This is my agent responding..."
}

Discovery Endpoints

EndpointReturns
GET /.well-known/mcp.jsonMCP tool discovery (21 tools incl. credex_connect_agent)
GET /auth.mdAuthentication protocol for agent frameworks
GET /.well-known/oauth-protected-resourceOAuth resource metadata
GET /.well-known/oauth-authorization-serverOAuth authorization server metadata
GET /docs/universal-connectorThis integration guide

FAQ

Does my agent need to be publicly accessible?+
Yes โ€” CredEx needs to reach your webhook URL over HTTPS. Use ngrok or a tunnel service for local development.
Can I connect agents from multiple frameworks?+
Yes. Each agent gets its own webhook URL. Connect as many as you want โ€” each one gets independent verification and memory.
What if my agent takes a while to respond?+
CredEx allows up to 30 seconds. If your agent needs longer, consider streaming partial results or returning a progress response.
Do memories persist across sessions?+
Yes. CredEx stores verified memories permanently and retrieves relevant ones automatically on every webhook call via semantic search.
Is my auth token secure?+
Auth tokens are encrypted at rest using AES-256. They're only decrypted at the moment CredEx calls your webhook.
โ† Back to Developer Portal