@@ -23,7 +23,58 @@ export interface IntercomCreateContactParams {
2323export interface IntercomCreateContactResponse {
2424 success : boolean
2525 output : {
26- contact : any
26+ contact : {
27+ id : string
28+ type : string
29+ role : string
30+ email : string | null
31+ phone : string | null
32+ name : string | null
33+ avatar : string | null
34+ owner_id : string | null
35+ external_id : string | null
36+ created_at : number
37+ updated_at : number
38+ signed_up_at : number | null
39+ last_seen_at : number | null
40+ workspace_id : string
41+ custom_attributes : Record < string , any >
42+ tags : {
43+ type : string
44+ url : string
45+ data : any [ ]
46+ has_more : boolean
47+ total_count : number
48+ }
49+ notes : {
50+ type : string
51+ url : string
52+ data : any [ ]
53+ has_more : boolean
54+ total_count : number
55+ }
56+ companies : {
57+ type : string
58+ url : string
59+ data : any [ ]
60+ has_more : boolean
61+ total_count : number
62+ }
63+ location : {
64+ type : string
65+ city : string | null
66+ region : string | null
67+ country : string | null
68+ country_code : string | null
69+ continent_code : string | null
70+ }
71+ social_profiles : {
72+ type : string
73+ data : any [ ]
74+ }
75+ unsubscribed_from_emails : boolean
76+ [ key : string ] : any
77+ }
2778 metadata : {
2879 operation : 'create_contact'
2980 contactId : string
@@ -182,15 +233,92 @@ export const intercomCreateContactTool: ToolConfig<
182233 } ,
183234
184235 outputs : {
185- success : { type : 'boolean' , description : 'Operation success status' } ,
186- output : {
236+ contact : {
187237 type : 'object' ,
188- description : 'Created contact data ' ,
238+ description : 'Created contact object ' ,
189239 properties : {
190- contact : { type : 'object' , description : 'Created contact object' } ,
191- metadata : { type : 'object' , description : 'Operation metadata' } ,
192- success : { type : 'boolean' , description : 'Operation success' } ,
240+ id : { type : 'string' , description : 'Unique identifier for the contact' } ,
241+ type : { type : 'string' , description : 'Object type (contact)' } ,
242+ role : { type : 'string' , description : 'Role of the contact (user or lead)' } ,
243+ email : { type : 'string' , description : 'Email address of the contact' } ,
244+ phone : { type : 'string' , description : 'Phone number of the contact' } ,
245+ name : { type : 'string' , description : 'Name of the contact' } ,
246+ avatar : { type : 'string' , description : 'Avatar URL of the contact' } ,
247+ owner_id : { type : 'string' , description : 'ID of the admin assigned to this contact' } ,
248+ external_id : { type : 'string' , description : 'External identifier for the contact' } ,
249+ created_at : { type : 'number' , description : 'Unix timestamp when contact was created' } ,
250+ updated_at : { type : 'number' , description : 'Unix timestamp when contact was last updated' } ,
251+ signed_up_at : { type : 'number' , description : 'Unix timestamp when user signed up' } ,
252+ last_seen_at : { type : 'number' , description : 'Unix timestamp when user was last seen' } ,
253+ workspace_id : { type : 'string' , description : 'Workspace ID the contact belongs to' } ,
254+ custom_attributes : { type : 'object' , description : 'Custom attributes set on the contact' } ,
255+ tags : {
256+ type : 'object' ,
257+ description : 'Tags associated with the contact' ,
258+ properties : {
259+ type : { type : 'string' , description : 'List type' } ,
260+ url : { type : 'string' , description : 'URL to fetch tags' } ,
261+ data : { type : 'array' , description : 'Array of tag objects' } ,
262+ has_more : { type : 'boolean' , description : 'Whether there are more tags' } ,
263+ total_count : { type : 'number' , description : 'Total number of tags' } ,
264+ } ,
265+ } ,
266+ notes : {
267+ type : 'object' ,
268+ description : 'Notes associated with the contact' ,
269+ properties : {
270+ type : { type : 'string' , description : 'List type' } ,
271+ url : { type : 'string' , description : 'URL to fetch notes' } ,
272+ data : { type : 'array' , description : 'Array of note objects' } ,
273+ has_more : { type : 'boolean' , description : 'Whether there are more notes' } ,
274+ total_count : { type : 'number' , description : 'Total number of notes' } ,
275+ } ,
276+ } ,
277+ companies : {
278+ type : 'object' ,
279+ description : 'Companies associated with the contact' ,
280+ properties : {
281+ type : { type : 'string' , description : 'List type' } ,
282+ url : { type : 'string' , description : 'URL to fetch companies' } ,
283+ data : { type : 'array' , description : 'Array of company objects' } ,
284+ has_more : { type : 'boolean' , description : 'Whether there are more companies' } ,
285+ total_count : { type : 'number' , description : 'Total number of companies' } ,
286+ } ,
287+ } ,
288+ location : {
289+ type : 'object' ,
290+ description : 'Location information for the contact' ,
291+ properties : {
292+ type : { type : 'string' , description : 'Location type' } ,
293+ city : { type : 'string' , description : 'City' } ,
294+ region : { type : 'string' , description : 'Region/State' } ,
295+ country : { type : 'string' , description : 'Country' } ,
296+ country_code : { type : 'string' , description : 'Country code' } ,
297+ continent_code : { type : 'string' , description : 'Continent code' } ,
298+ } ,
299+ } ,
300+ social_profiles : {
301+ type : 'object' ,
302+ description : 'Social profiles of the contact' ,
303+ properties : {
304+ type : { type : 'string' , description : 'List type' } ,
305+ data : { type : 'array' , description : 'Array of social profile objects' } ,
306+ } ,
307+ } ,
308+ unsubscribed_from_emails : {
309+ type : 'boolean' ,
310+ description : 'Whether contact is unsubscribed from emails' ,
311+ } ,
193312 } ,
194313 } ,
314+ metadata : {
315+ type : 'object' ,
316+ description : 'Operation metadata' ,
317+ properties : {
318+ operation : { type : 'string' , description : 'The operation performed (create_contact)' } ,
319+ contactId : { type : 'string' , description : 'ID of the created contact' } ,
320+ } ,
321+ } ,
322+ success : { type : 'boolean' , description : 'Operation success status' } ,
195323 } ,
196324}
0 commit comments