Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Conversations → New Conversation

AI-generated

Summary

Create a new conversation in the specified inbox with optional configuration such as contact, status, assignee, team, snoozed until date, and include an initial message along with additional or custom attributes.

Inputs

  • Source Id (required) — The conversation source identifier to associate with the new conversation.
  • Inbox Id (required) — The ID of the inbox where the conversation should be created; allowed types are Website, Phone, Api, Email.
  • Contact Id — Optional identifier of the contact for whom the conversation is being created.
  • Additional Attributes — JSON object specifying extra attributes like browser or OS information related to the conversation.
  • Custom Attributes — JSON object allowing storage of custom key-value pairs as metadata for the conversation.
  • Status — The status of the conversation, which can be open, resolved, or pending.
  • Assignee Id — Agent ID to whom the conversation will be assigned.
  • Team Id — Team ID to assign the conversation to a specific team.
  • Snoozed Until — Optional date-time string specifying until when the conversation is snoozed.
  • Message — JSON object defining the initial message content and optional template parameters to be sent when the conversation is created.

Output shape

a single record

Returns the newly created conversation record with its properties as an object. No pagination applies as it is a singular creation operation.

Links

Discussion