Skip to content

Set System Message

Purpose of the Node

This node is used to update the system prompt message in a given ChatHistory. It takes the existing history, removes any existing system messages, and inserts the new system prompt at the beginning of the history.

Pins

Pin NamePin DescriptionPin TypeValue Type
StartInitiate ExecutionStructNormal
HistoryChatHistoryStructArray
MessageSystem Prompt MessageStringMap
EndDone with the ExecutionStructNormal
HistoryUpdated ChatHistoryStructArray