Skip to content

Commit 44a8fa1

Browse files
hathamnehclaude
andauthored
Add sales_agent to conversation schema (Preview) (#450)
* Add sales_agent schema to conversation in Preview spec Adds sales_agent_participated boolean and sales_agent object to both conversation and conversation_list_item schemas. The sales_agent object includes outcome, routing_outcome_identifier, routing_outcome_title, collected_data, source_type, and source_title. Companion to intercom/intercom#495798 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Remove collected_data and source fields from sales_agent schema Simplified to outcome + routing outcome fields only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update sales_agent schema: add collected_data, rename routing_outcome - Rename `routing_outcome_identifier` to `routing_outcome` - Remove `routing_outcome_title` - Add `collected_data` as object with additionalProperties Companion to intercom/intercom#495798 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7f65443 commit 44a8fa1

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18702,6 +18702,41 @@ components:
1870218702
nullable: true
1870318703
content_sources:
1870418704
"$ref": "#/components/schemas/content_sources_list"
18705+
sales_agent:
18706+
title: Sales Agent
18707+
type: object
18708+
x-tags:
18709+
- Sales Agent
18710+
description: Data related to Sales Agent involvement in the conversation.
18711+
properties:
18712+
outcome:
18713+
type: string
18714+
nullable: true
18715+
description: The fixed outcome of the sales agent interaction, used for
18716+
billing and tracking.
18717+
enum:
18718+
- qualified
18719+
- disqualified
18720+
- product_discovery
18721+
- escalated_to_support
18722+
- spam
18723+
example: qualified
18724+
routing_outcome:
18725+
type: string
18726+
nullable: true
18727+
description: The identifier of the user-defined routing outcome selected
18728+
by the sales agent.
18729+
example: enterprise_sales
18730+
collected_data:
18731+
type: object
18732+
nullable: true
18733+
description: A flat key-value map of memory fields collected by the sales
18734+
agent during the conversation.
18735+
additionalProperties:
18736+
type: string
18737+
example:
18738+
email: user@example.com
18739+
company.name: Acme Inc
1870518740
ai_subtopic:
1870618741
title: AI Subtopic
1870718742
type: object
@@ -21054,6 +21089,13 @@ components:
2105421089
ai_agent:
2105521090
"$ref": "#/components/schemas/ai_agent"
2105621091
nullable: true
21092+
sales_agent_participated:
21093+
type: boolean
21094+
description: Indicates whether the Sales Agent participated in the conversation.
21095+
example: false
21096+
sales_agent:
21097+
"$ref": "#/components/schemas/sales_agent"
21098+
nullable: true
2105721099
conversation:
2105821100
title: Conversation
2105921101
type: object
@@ -21172,6 +21214,13 @@ components:
2117221214
ai_agent:
2117321215
"$ref": "#/components/schemas/ai_agent"
2117421216
nullable: true
21217+
sales_agent_participated:
21218+
type: boolean
21219+
description: Indicates whether the Sales Agent participated in the conversation.
21220+
example: false
21221+
sales_agent:
21222+
"$ref": "#/components/schemas/sales_agent"
21223+
nullable: true
2117521224
conversation_attachment_files:
2117621225
title: Conversation attachment files
2117721226
type: object

0 commit comments

Comments
 (0)