← Public packages
@kody/intercom
Read Intercom contacts, conversations, and articles, with dry-run writes.
src/reply-conversation.ts
11 lines · 523 B · TypeScriptimport { 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))
}