Skip to content

Docs

ask_workspace

Ask heyeveryone's own AI a question about this workspace's content, calendar and results ("What did best on LinkedIn last month?"). It reads with the read tools you have, never writes, and answers in plain words with links to what it used; it says so when the data can't answer (leads, sales). Returns `runId` at once: poll list_ai_runs with `runId` until the run ends; its `output` holds `answer`, `citations` and `read`. `followUpOf`: an earlier Ask's runId. Free instead: read get_results and query_content yourself.

Ask heyeveryone's own AI a question about this workspace's content, calendar and results ("What did best on LinkedIn last month?"). It reads with the read tools you have, never writes, and answers in plain words with links to what it used; it says so when the data can't answer (leads, sales). Returns runId at once: poll list_ai_runs with runId until the run ends; its output holds answer, citations and read. followUpOf: an earlier Ask's runId. Free instead: read get_results and query_content yourself.

Uses heyeveryone AI and costs credits: Up to 25 credits a question, usually about 12 and at least 5, charged by what it uses (nothing if it fails or is stopped before answering). Tell the person before calling it.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: Up to 25 credits a question, usually about 12 and at least 5, charged by what it uses (nothing if it fails or is stopped before answering)
  • Requires confirmation: false
  • Accepts idempotency key: true

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "question": {
      "maxLength": 2000,
      "minLength": 1,
      "type": "string"
    },
    "context": {
      "properties": {
        "pieceId": {
          "format": "uuid",
          "type": "string"
        },
        "note": {
          "maxLength": 300,
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    },
    "followUpOf": {
      "format": "uuid",
      "type": "string"
    },
    "idempotencyKey": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "question"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "runId": {
      "format": "uuid",
      "type": "string"
    },
    "status": {
      "enum": [
        "queued",
        "running",
        "succeeded",
        "stopped_at_max",
        "failed",
        "cancelled"
      ],
      "type": "string"
    },
    "answer": {
      "type": [
        "string",
        "null"
      ]
    },
    "citations": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "tool": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "url",
          "label",
          "tool"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "cost": {
      "additionalProperties": false,
      "properties": {
        "estimate": {
          "additionalProperties": false,
          "properties": {
            "min": {
              "minimum": 0,
              "type": "integer"
            },
            "max": {
              "minimum": 0,
              "type": "integer"
            },
            "typical": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "min",
            "max",
            "typical"
          ],
          "type": "object"
        },
        "charged": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "soFar": {
          "minimum": 0,
          "type": "integer"
        },
        "stoppedAtMax": {
          "type": "boolean"
        },
        "continueEstimate": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "min": {
                  "minimum": 0,
                  "type": "integer"
                },
                "max": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "min",
                "max"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "estimate",
        "charged",
        "soFar",
        "stoppedAtMax",
        "continueEstimate"
      ],
      "type": "object"
    },
    "replayed": {
      "type": "boolean"
    }
  },
  "required": [
    "runId",
    "status",
    "answer",
    "citations",
    "cost",
    "replayed"
  ],
  "type": "object"
}

Errors

[
  "insufficient_credits",
  "too_many_runs",
  "idempotency_conflict",
  "plan_limit_reached"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": false,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Ask heyeveryone"
}