Conversation
A customer conversation as it appears in the shared Flownally inbox.
Properties
- Name
revision- Type
- integer
- Name
waitingSince- Type
- string | null
Use this to tell whether the conversation needs a reply: when the customer started waiting in the current session. A reply from a teammate, an API key or an inbox (the business's own phone or a connected desk) ends the wait once it is sent. A chatbot's reply doesn't end it but moves its start to the customer's first message the chatbot hasn't answered, or to their latest message, so a conversation a chatbot handed over shows as waiting. A reply from a responder Flownally doesn't run (external, such as Meta Business Agent) does the same. Journey and campaign messages are ignored.nullwhen nobody is waiting for a reply, when the session is closed or owned by a chatbot, journey, API key or connected inbox, or while another responder holds the conversation.- Name
actionContext- Type
- InboxActionContext
- Name
id- Type
- string
- required
- Name
channel- Type
- string
- required
- Name
externalId- Type
- string
- required
The channel's identifier for the customer in this inbox. For WhatsApp it is the business-scoped user ID when available, otherwise the phone number digits without+. It can change; useidas the stable key.- Name
inboxId- Type
- string
- Name
name- Type
- string
- Name
contactId- Type
- string
- Name
contactName- Type
- string
- Name
status- Type
- enum
- required
Status of the conversation's session.pendingwhen the customer wrote after the last teammate, chatbot orexternalresponder message, or a chatbot handed the conversation over;openwhen a teammate, chatbot orexternalresponder wrote last. When an external responder hands the conversation back, the status stays as it is. API key, inbox, journey and campaign messages don't change it. It changes when a message is accepted, so a reply that later fails to send leavesopenwhilewaitingSincestays set; usewaitingSincefor "needs a reply".coldwhen no session has handled it yet, for example outreach nobody has answered.One of: cold, pending, open, closed- Name
activeOwner- Type
- ConversationOwner
- Name
lastMessageAt- Type
- string
- required
- Name
lastMessagePreview- Type
- string
- required
- Name
lastMessageSender- Type
- string
- required
- Name
lastMessageSenderId- Type
- string
ID of the latest message's sender, when available.- Name
ban- Type
- ConversationBan
- Name
messagingWindow- Type
- Window
Used by
- POSTSend message/messages
- GETGet message/messages/{id}
- GETList conversations/conversations
- GETGet conversation/conversations/{id}
- GETList conversation messages/conversations/{id}/messages
- POSTSend message in conversation/conversations/{id}/messages
- POSTMark conversation as read/conversations/{id}:markRead
- POSTClose conversation/conversations/{id}:close
- POSTBan conversation customer/conversations/{id}:ban
- POSTUnban conversation customer/conversations/{id}:unban
- POSTWebhook payloads{configured webhook URL}