Skip to main content

Communicate With Glean

Send contextual messages to Glean AI for a response.

Note, this action belongs to Glean Chat API, therefore requires using either the Global Client Token or the User Client Token connection methods.

External Documentation

To learn more, visit the Glean documentation.

Basic Parameters

ParameterDescription
Agent ModeThe mode of the agent that executes the request. For more information, please refer to Glean's documentation.
Agent NameThe name of the agent that executes the request. For more information, please refer to Glean's documentation.
Chat IDThe ID of the Chat that context should be retrieved from and messages added to. Can be obtained by using the List Chats action. An empty ID starts a new Chat, and the Chat is saved if Save Chat is true.
MessagesMessages containing queries to prompt Glean for a response. The official reply will be included in the messages attribute of the response, within the last message object.Note: It is recommended to either send a single message at a time or include a few messages that pertain to the same subject/context. You can also provide context by including chat history using the Get Chat By ID action.Example:
  [    {      "author": "USER",      "messageType": "CONTENT",      "fragments": [        {          "text": "What are the company holidays this year?"        }      ]    }  ]
For more information on messages, please refer to Glean's documentation.
Save ChatSave the current interaction as a Chat for the user to access and potentially continue later.
Timezone OffsetThe offset of the client's timezone in minutes from UTC. For example, PTD is -420 because it's 7 hours behind UTC.

Advanced Parameters

ParameterDescription
Application IDThe ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used.
Timeout MillisTimeout in milliseconds for the request. A 408 error will be returned if handling the request takes longer.

Example Output

{
"messages": [
{
"author": "GLEAN_AI",
"messageType": "CONTENT",
"hasMoreFragments": false,
"agentConfig": {
"agent": "DEFAULT",
"mode": "DEFAULT"
},
"fragments": [
{
"text": "There are no holidays!"
}
]
}
]
}

Workflow Library Example

Communicate with Glean and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop