Saltar para o conteúdo
Connect your own agent

Documentation / Connect your own agent

Connect your own agent

This documentation is in English.

Send conversations from your own agent and ask for approval before it acts.

If you build your own agent, it can report its conversations to Blue Falnoa and ask for approval before it does something with consequences. You need an administrator to create a key for it.

Get a key

  1. Open the agent, then its Registry tab, and approve it.
  2. Open the Settings tab, choose Connect in 5 minutes and create a key. It is shown once, so copy it.

In the examples, replace the address with your workspace address and the key with yours.

Check the connection

curl -H "Authorization: Bearer YOUR_KEY" https://YOUR-WORKSPACE/api/agent/v1/ping

A working key answers with ok set to true. If the key is valid but something would block the first message, such as an agent that is not approved, ok is false and the reasons are listed.

Send a conversation

curl -X POST https://YOUR-WORKSPACE/api/agent/v1/conversations/order-123/messages \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [
        {"id": "m1", "role": "user", "content": "Where is my order?"},
        {"id": "m2", "role": "assistant", "content": "It ships tomorrow."}
      ]}'

The name order-123 is yours. The first call creates the conversation and later calls add to it. A message whose id was already sent is skipped, so retrying is safe. The conversation then appears under Conversations, where people can check the answer.

Ask before acting

curl -X POST https://YOUR-WORKSPACE/api/agent/v1/actions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "payments.transfer",
       "summary": "Pay supplier invoice 42",
       "params": {"amount": 40000, "currency": "EUR"},
       "idempotency_key": "invoice-42"}'

The request appears under Action gateway as Waiting. Ask for it again with GET /api/agent/v1/actions/ followed by its id until the status is approved, rejected or expired, and act only when it is approved.

Libraries

A Python package (blue_falnoa) and a TypeScript package (@blue-falnoa/sdk) wrap these calls. An MCP server and an n8n workflow are also available.