Topolo Docs Topolo Platform
Open workspace

Classify reply intent

Set a thread's intent; the effect is deterministic. unsubscribe, wrong_person and not_interested record a suppression ledger event (unsubscribed, wrong_person — organization-wide for the address — or not_interested) and close the thread. interested, meeting_requested and question keep it open (a closed thread reopens); interested and meeting_requested alert the owner. not_now closes it with an optional followUpOn date. referral closes it and, with referredEmail, creates a manual contact for that address without enrolling it. out_of_office only labels it. Audited.

Outcome

Set a thread's intent; the effect is deterministic. unsubscribe, wrong_person and not_interested record a suppression ledger event (unsubscribed, wrong_person — organization-wide for the address — or not_interested) and close the thread. interested, meeting_requested and question keep it open (a closed thread reopens); interested and meeting_requested alert the owner. not_now closes it with an optional followUpOn date. referral closes it and, with referredEmail, creates a manual contact for that address without enrolling it. out_of_office only labels it. Audited.

Before you start

  • Verify the intended environment, signed-in credential, authorized organization and the action permission workspace:write.
  • Discover and select an authorized canonical Engage workspace. Pass resourceType=workspace and resourceId separately from action input.
  • Review the exact effects and obtain approval before CLI --confirm or MCP confirm:true. A local capture does not authorize a live mutation.

Discover the target

topolo whoami --json
topolo actions get app_topolo_engage.threads.classify --json
topolo workspaces list topolo-engage --json

Set ENGAGE_WORKSPACE_ID to the identifier of the selected authorized workspace.

Input contract

FieldRequiredDeclared constraints
idYes{"type":"string","minLength":1,"maxLength":128}
intentYes{"type":"string","enum":["interested","meeting_requested","not_interested","not_now","wrong_person","referral","out_of_office","unsubscribe","question"]}
followUpOnNo{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}
referredEmailNo{"type":"string","minLength":3,"maxLength":320}

Validate, plan and execute

Build payload.json from the current schema and discovered identifiers. The action description above defines its behavior, limits, side effects and declared errors.

: "${ENGAGE_WORKSPACE_ID:?Set ENGAGE_WORKSPACE_ID to your selected workspace identifier}"
topolo actions validate app_topolo_engage.threads.classify --data @payload.json --json
topolo actions plan app_topolo_engage.threads.classify --resource-type workspace --resource-id "$ENGAGE_WORKSPACE_ID" --data @payload.json --confirm --json

Review the plan and approve its exact effects before executing the unchanged request.

: "${ENGAGE_WORKSPACE_ID:?Set ENGAGE_WORKSPACE_ID to your selected workspace identifier}"
topolo actions call app_topolo_engage.threads.classify --resource-type workspace --resource-id "$ENGAGE_WORKSPACE_ID" --data @payload.json --confirm --json

For MCP, use topolo_get_action, topolo_validate_action, topolo_plan_action and topolo_call_action. Pass resource context separately where required; confirm:true is required for mutations.

Captured successful requests and responses

Captured HTTP 200 · inbound replies thread into the inbox > keeps an operator intent when an auto-reply arrives

Action input

{
  "id": "eng_thr_1",
  "intent": "question"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "question",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": "2026-10-06T12:30:00.000Z",
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: inbound replies thread into the inbox > keeps an operator intent when an auto-reply arrives. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > unsubscribe records unsubscribed in the ledger once and closes the thread

Action input

{
  "id": "eng_thr_1",
  "intent": "unsubscribe"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "unsubscribe",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": "unsubscribed"
}

Source test: reply inbox actions > threads.classify > unsubscribe records unsubscribed in the ledger once and closes the thread. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > wrong_person records wrong_person in the ledger once and closes the thread

Action input

{
  "id": "eng_thr_1",
  "intent": "wrong_person"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "wrong_person",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": "wrong_person"
}

Source test: reply inbox actions > threads.classify > wrong_person records wrong_person in the ledger once and closes the thread. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > not_interested records not_interested in the ledger once and closes the thread

Action input

{
  "id": "eng_thr_1",
  "intent": "not_interested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "not_interested",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": "not_interested"
}

Source test: reply inbox actions > threads.classify > not_interested records not_interested in the ledger once and closes the thread. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · inbound replies thread into the inbox > alerts the thread owner, and nobody when there is no owner and no campaign creator

Action input

{
  "id": "eng_thr_1",
  "intent": "interested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "interested",
    "ownerUserId": "user_9",
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": "2026-10-06T12:30:00.000Z",
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: inbound replies thread into the inbox > alerts the thread owner, and nobody when there is no owner and no campaign creator. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > records no ledger event when the contact has no email point left

Action input

{
  "id": "eng_thr_1",
  "intent": "unsubscribe"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "unsubscribe",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > records no ledger event when the contact has no email point left. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · inbound replies thread into the inbox > alerts the thread owner, and nobody when there is no owner and no campaign creator

Action input

{
  "id": "eng_thr_1",
  "intent": "meeting_requested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "meeting_requested",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": "2026-10-06T12:30:00.000Z",
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: inbound replies thread into the inbox > alerts the thread owner, and nobody when there is no owner and no campaign creator. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > interested keeps the thread open and reopens a closed one

Action input

{
  "id": "eng_thr_1",
  "intent": "interested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "interested",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": "2026-10-06T12:30:00.000Z",
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > interested keeps the thread open and reopens a closed one. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > interested keeps the thread open and reopens a closed one

Action input

{
  "id": "eng_thr_1",
  "intent": "interested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "interested",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > interested keeps the thread open and reopens a closed one. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > meeting_requested keeps the thread open and reopens a closed one

Action input

{
  "id": "eng_thr_1",
  "intent": "meeting_requested"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "meeting_requested",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > meeting_requested keeps the thread open and reopens a closed one. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > question keeps the thread open and reopens a closed one

Action input

{
  "id": "eng_thr_1",
  "intent": "question"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "question",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > question keeps the thread open and reopens a closed one. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels

Action input

{
  "id": "eng_thr_1",
  "intent": "out_of_office"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "open",
    "intent": "out_of_office",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": "2026-10-06T12:30:00.000Z",
    "respondedAt": null,
    "closedAt": null,
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels

Action input

{
  "id": "eng_thr_1",
  "intent": "not_now",
  "followUpOn": "2026-11-02"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "not_now",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": "2026-11-02",
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels

Action input

{
  "id": "eng_thr_1",
  "intent": "not_now"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "not_now",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "referral",
  "referredEmail": "Boss@Acme.io"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "referral",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": "eng_ct_8a74645293e5454cb3655287e9df0a52",
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "referral",
  "referredEmail": "boss@acme.io"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "referral",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": "eng_ct_8a74645293e5454cb3655287e9df0a52",
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 200 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "referral"
}

Actual local response

{
  "thread": {
    "id": "eng_thr_1",
    "enrollmentId": "eng_enr_1",
    "contactId": "contact_1",
    "seatId": "eng_seat_1",
    "campaignId": "eng_cmp_1",
    "subject": "Quick question, Ada",
    "status": "closed",
    "intent": "referral",
    "ownerUserId": null,
    "firstReplyAt": "2026-10-06T08:30:00.000Z",
    "lastReplyAt": "2026-10-06T08:30:00.000Z",
    "slaDueAt": null,
    "respondedAt": null,
    "closedAt": "2026-10-06T08:30:00.000Z",
    "followUpOn": null,
    "referredContactId": null,
    "lastSnippet": "Sounds interesting",
    "createdAt": "2026-10-06T08:30:00.000Z",
    "updatedAt": "2026-10-06T08:30:00.000Z",
    "overdue": false
  },
  "ledgerEvent": null
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Effects and response meaning

  • Set a thread's intent; the effect is deterministic. unsubscribe, wrong_person and not_interested record a suppression ledger event (unsubscribed, wrong_person — organization-wide for the address — or not_interested) and close the thread. interested, meeting_requested and question keep it open (a closed thread reopens); interested and meeting_requested alert the owner. not_now closes it with an optional followUpOn date. referral closes it and, with referredEmail, creates a manual contact for that address without enrolling it. out_of_office only labels it. Audited.

Verify the outcome

  • Check the response against the declared output schema and the requested operation. For mutations, use the action-specific read described in the action description before any dependent operation.

Recover

For an uncertain result, inspect current retained state with a read action before retrying. Do not replay a mutation unless its contract explicitly guarantees idempotency.

Refused requests

Captured HTTP 422 · reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels

Action input

{
  "id": "eng_thr_1",
  "intent": "interested",
  "followUpOn": "2026-11-02"
}

Actual local response

{
  "error": {
    "code": "invalid_action_input",
    "message": "followUpOn applies only to not_now."
  }
}

Source test: reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 422 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "referral",
  "referredEmail": "not an email"
}

Actual local response

{
  "error": {
    "code": "invalid_email",
    "message": "The referred email address is not valid.",
    "details": {
      "reason": "missing_at"
    }
  }
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 503 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "referral",
  "referredEmail": "c@acme.io"
}

Actual local response

{
  "error": {
    "code": "audience_not_configured",
    "message": "Contact storage is not configured for this deploy."
  }
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 422 · reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels

Refused input; do not execute

{
  "intent": "unclassified",
  "id": "eng_thr_1"
}

Actual local response

{
  "error": {
    "code": "invalid_action_input",
    "message": "Input for threads.classify is invalid.",
    "details": [
      {
        "code": "invalid_value",
        "values": [
          "interested",
          "meeting_requested",
          "not_interested",
          "not_now",
          "wrong_person",
          "referral",
          "out_of_office",
          "unsubscribe",
          "question"
        ],
        "path": [
          "intent"
        ],
        "message": "Invalid option: expected one of \"interested\"|\"meeting_requested\"|\"not_interested\"|\"not_now\"|\"wrong_person\"|\"referral\"|\"out_of_office\"|\"unsubscribe\"|\"question\""
      }
    ]
  }
}

Source test: reply inbox actions > threads.classify > not_now closes with an optional follow-up date; out_of_office only labels. Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Captured HTTP 422 · reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one)

Action input

{
  "id": "eng_thr_1",
  "intent": "question",
  "referredEmail": "x@y.io"
}

Actual local response

{
  "error": {
    "code": "invalid_action_input",
    "message": "referredEmail applies only to referral."
  }
}

Source test: reply inbox actions > threads.classify > referral closes and creates a manual, unenrolled contact (reusing an existing one). Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

Error recovery

  • HTTP 422 invalid_action_input: Correct the request against the current action input schema, then validate it again before planning.
  • HTTP 422 invalid_email: Read the refusal details and current action contract, correct the stated cause, then validate and plan again. Do not retry unchanged or infer success.
  • HTTP 503 audience_not_configured: Read the refusal details and current action contract, correct the stated cause, then validate and plan again. Do not retry unchanged or infer success.

Evidence and limits

  • /api/threads/{id}/classify

  • Actual route handlers with SQLite repositories; synthetic identity/workspace grants and provider ports.

  • Widget/bootstrap use actual app handler but mocked worker runtime and app identity.

  • No gateway execution, live permissions, external delivery or deployed proof.

These are local route captures with synthetic identity and simulated dependencies. They do not prove live authorization, gateway execution, production state, or external delivery.