Files
sim/apps/sim/triggers/attio/comment_created.ts
Waleed d06459f489 fix(attio): automatic webhook lifecycle management and tool fixes (#3327)
* fix(attio): use code subblock type for JSON input fields

* fix(attio): correct people name attribute format in wand prompt example

* fix(attio): improve wand prompt with correct attribute formats for all field types

* fix(attio): use array format with full_name for personal-name attribute in wand prompt

* fix(attio): use loose null checks to prevent sending null params to API

* fix(attio): add offset param and make pagination fields advanced mode

* fix(attio): remove redundant (optional) from placeholders

* fix(attio): always send required workspace_access and workspace_member_access in create list

* fix(attio): always send api_slug in create list, auto-generate from name if not provided

* fix(attio): update api slug placeholder text

* fix(tools): manage lifecycle for attio tools

* updated docs

* fix(attio): remove incorrect save button reference from setup instructions

* fix(attio): log debug message when signature verification is skipped
2026-02-24 17:30:52 -08:00

30 lines
797 B
TypeScript

import { AttioIcon } from '@/components/icons'
import { buildAttioTriggerSubBlocks, buildCommentOutputs } from '@/triggers/attio/utils'
import type { TriggerConfig } from '@/triggers/types'
/**
* Attio Comment Created Trigger
*
* Triggers when a comment is created in Attio.
*/
export const attioCommentCreatedTrigger: TriggerConfig = {
id: 'attio_comment_created',
name: 'Attio Comment Created',
provider: 'attio',
description: 'Trigger workflow when a new comment is created in Attio',
version: '1.0.0',
icon: AttioIcon,
subBlocks: buildAttioTriggerSubBlocks('attio_comment_created'),
outputs: buildCommentOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Attio-Signature': 'hmac-sha256-signature',
},
},
}