Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/intercom

src/reply-conversation.ts

11 lines · 523 B · TypeScript
import { parseReplyConversation, replyConversation } from './conversations.ts'

/**
 * Reply to an Intercom conversation. Requires `confirm: true`, or use `dryRun: true`.
 * @example
 * import replyConversation from 'kody:@kody/intercom/reply-conversation'
 * const preview = await replyConversation({ id, body: 'Thanks — looking into this.', dryRun: true })
 */
export default async function replyConversationEntrypoint(params: Record<string, unknown> = {}) {
	return replyConversation(parseReplyConversation(params))
}