Gladly Get/Create Conversation

Finds a customer's most recent open conversation in Gladly, or creates a new one, and optionally adds a note. Use it to make sure a flow has a conversation to work with.

What it does

  • Looks up the customer by email, creating the customer profile if they don't exist.
  • Returns the latest open or waiting conversation, or creates a new one when none is open.
  • Optionally adds an initial note, and returns the conversation items, topics and agent details.

Inputs

NameTypeDescription
Gladly DomainCredentialsGladly Domain
EnvironmentCredentialsGladly QA or PROD environment Possible values: qa, com.
UsernameCredentialsGladly Agent Username
API KeyCredentialsGladly API Key
Organisation IDStringGladly Organisation ID. Can be retrieved from /organization
Customer EmailStringCustomer email
Customer NameOptional StringCustomer name
AgentStringAgent email address or agent ID
Inbox IDStringInbox ID
Initial Note BodyOptional StringInitial note body. Default 'Adding a note to the customer profile'
External IDOptional StringExternal ID (uuid) to be used for the conversation ID

Outputs

NameTypeDescription
SuccessBooleanWhether a conversation was create successfully
Customer IDStringCustomer ID
Conversation IDStringConversation ID
Last Conversation DataObjectLast conversation data
Last Conversation ItemsListLast conversation items
Customer Conversations ListListCustomer conversations list
Agent IDStringAgent ID
Inbox IDStringInbox ID
Conversation TopicsListConversation Topics List

Notes

  • Needs Gladly credentials (domain, environment, username, API key and organisation ID), plus an agent and inbox to assign the conversation to.

API reference