Skip to content

Get Teams Messages Node

Events/Chat/Teams

Read recent messages of the Teams thread or conversation of a Chat Event session, with author names

events_teams_get_messagesdata
Inputs4
Outputs5
Security exposure6/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
6/10Medium
PrivacyPotential sensitivity of processed data.
4/10Medium
PerformanceRuntime or resource pressure.
6/10Medium
GovernancePolicy, audit, or compliance impact.
6/10Medium
ReliabilityOperational stability considerations.
6/10Medium
CostExternal or compute cost impact.
8/10High

Input Pins

4

In

Execution
exec_in

Read the Teams messages

Session

Struct
session

Local or global session from the Teams Chat Event

objectobject0 fields
No named fields in this schema.

Scope

String
scope

thread reads the channel thread of the message, conversation reads the whole channel or chat

Default thread
threadconversation

Limit

Integer
limit

Maximum number of messages, 1 to 50

Default 20
Range 1 to 50

Output Pins

5

Out

Execution
exec_out

Teams returned the result

Messages

Struct Array
messages

Messages oldest first

TeamsHistoryMessageTeamsHistoryMessage10 fields
idstring | null
default null
author_idstring | null
default null
author_aad_object_idstring | null
default null
author_namestring | null
default null
is_botboolean | null
default null
textstring | null
default null
htmlstring | null
default null
created_atstring | null
default null
reply_to_idstring | null
default null
attachmentsArray<TeamsFileLink>
default []
itemsTeamsFileLinkarray item
namestring | null
default null
typestring | null
default null
linkstring | null
default null
Schema enforced

History

Struct
history

Chat history with people's messages as "Name: text" and bot messages as assistant

HistoryHistory19 fields
modelstringrequired
messagesArray<HistoryMessage>required
itemsHistoryMessagearray item
roleRolerequired
enum "system", "user", "assistant", "function"...
contentMessageContentrequired
variant 1stringvariant
variant 2Array<Content>variant
namestring | null
tool_callsarray | null
itemsToolCallarray item
tool_call_idstring | null
+1 more fields
presetstring | null
streamboolean | null
stream_optionsanyOf (2)
variant 1StreamOptionsvariant
include_usagebooleanrequired
variant 2nullvariant
max_completion_tokensinteger | null
format uint32min 0
top_pnumber | null
format float
temperaturenumber | null
format float
thinkinganyOf (2)
variant 1HistoryThinkingvariant
enum "off", "low", "mid", "high"
variant 2nullvariant
seedinteger | null
format uint32min 0
presence_penaltynumber | null
format float
frequency_penaltynumber | null
format float
userstring | null
stoparray | null
itemsstringarray item
response_formatanyOf (2)
variant 1ResponseFormatvariant
variant 1stringvariant
variant 2nullvariant
ninteger | null
format uint32min 0
toolsarray | null
itemsToolarray item
typeToolTyperequired
enum "function"
functionHistoryFunctionrequired
namestringrequired
descriptionstring | null
parametersHistoryFunctionParametersrequired
tool_choiceanyOf (2)
variant 1ToolChoicevariant
variant 1nullvariant
variant 2nullvariant
variant 3nullvariant
variant 4objectvariant
typeToolTyperequired
enum "function"
functionHistoryFunctionrequired
variant 2nullvariant
+1 more fields
Schema enforced

Transcript

String
transcript

One "Name: text" line per message

Source

String
source

graph for Microsoft Graph, bot_history for the bot's own 1:1 history

Node Info

Internal name
events_teams_get_messages
Category
Events/Chat/Teams
Version
1