Use Deal Desk Data

Understand deal records and use them from the website, GraphQL API, or an agent.


Deal Desk keeps the agreement, operational history, and supporting evidence together. The website, GraphQL API, and sai-deals command-line program use the same stored records.

What the Records Mean

RecordWhat it tells you
Deal identity and contactsWho the agreement is with, its stable ID, and associated referral codes, wallets, or conversations
TermsWhat was agreed, including conditions, periods, reward amounts, and payment forms; the API calls these signals
EvaluationsWhat was measured against a term, when it was measured, and whether the available history is complete
Actions and completionsWork recorded against the agreement, with its supporting evidence
Payments and execution evidenceWhat was issued, how it was issued, and the recorded proof of execution
CommunicationsWhat was sent and which deal activity it concerns

A term describes the agreement. An evaluation describes a measurement. Neither alone proves that a payment was executed. Read the payment’s execution evidence and completed actions before reporting what someone received or what remains due.

Incomplete history is not zero activity. Include measurement dates and coverage limits in summaries. Keep monetary values as exact decimal strings rather than rounding them through floating-point arithmetic.

Keep USDC trading credits, withdrawable deposits, and cash payments distinct when describing what was issued. The payment form is part of the record.

Get Access

Ask Unique to approve your company Google account for the website at /ops or to share the team’s read-only API key through 1Password. The key can read across Deal Desk and stays valid until revoked. Set the review scope in the task you give your agent.

Set Up a Local Agent

  1. Open the public sai-deals skill in Jiyuu. Clone Jiyuu or use your agent’s skill installer with that repository and path. For manual setup, copy the entire ai-skills/sai-deals directory into your agent’s skills directory.
  2. Load the team key from 1Password into the agent process as SAI_DEAL_DESK_TOKEN. Follow the GraphQL reference for CLI setup. Keep the key in the secret store and out of the task prompt.
  3. Ask the agent to use the sai-deals skill. Start by verifying the key returns exactly records:read from the credential query, then give it one of the tasks below.

Query the GraphQL API

Send requests to https://ops-api.sai.fun/graphql with the issued key:

POST /graphql
Authorization: Bearer <issued-api-key>
Content-Type: application/json

Start with this JSON request body to check the credential and its permissions:

{"query": "query { credential }"}

To read a deal by its stable ID or referral code, use this GraphQL query:

query DealRecords($selectors: String!) {
view(
selectors: $selectors
fields: "deal,signals,payments,completions,latestEvaluations"
)
}

Supply a variables object such as:

{"selectors": "<deal-id-or-referral-code>"}

The view field returns a JSON projection, so it has no nested GraphQL selection set. The directory query lists stored deal identities and aliases when you need to find a selector. Check for GraphQL errors as well as HTTP failures before treating a response as a successful read.

Use the CLI with an Agent

If Unique has provided a cloud-configured sai-deals CLI installation, these commands check access and read stored records:

Terminal window
sai-deals health
sai-deals auth keys status
sai-deals deals view <deal-id-or-referral-code> --format json

The same commands work with sai-ops. Routine reads use the hosted API. They do not require a local database copy, Telegram session, or Google Cloud login. The issued key alone does not configure the CLI’s record target; use direct GraphQL access if you have not been given a cloud-configured installation. Key creation and revocation are administrator operations; the CLI’s auth keys setup command is not a self-service access request.

Brief Me on a Deal

Use the sai-deals skill to brief me on EXAMPLE-CODE before I reply to the trader. Resolve the referral code to a stable deal ID. If several deals match, show the candidates and pause. For each relevant term, show what was agreed, the latest evaluation date and measurement window, and any gaps in coverage. Check payment executions, completed actions, and communications before saying what the trader received or what we told them. Give me a short deal summary, an evidence table with record IDs and timestamps, and one next step for me to review. Preserve exact USDC amounts and payment forms. Keep the task read-only.

Prepare Today’s Trader Follow-Ups

Use the sai-deals skill to review executed payments and actions from the last seven UTC days with no linked communication record. Open each affected deal and look for a deal-level communication that already covers the event. Flag undated events separately. For each item that still needs review, give me the stable deal ID, event and date, evidence IDs, what the communication records show, and a proposed next step. Tell me which dates and deals you reviewed and flag incomplete queries. Include GitHub-only fixes only if you verified them in GitHub. Return the queue for review and leave messages and records untouched.

For group setup, use Create a Telegram Chat.