notion.createOrUpdateSession start an agent session or send input to an existing session.
Example
automations/notion-create-or-update-session.automation.ts
Inputs
Choose exactly one mode:message, actions, or continue_from. Action responses and continuations require session_id; a first message may use agent_id. Attachments, metadata, and prompt context apply only to documented variants. Every input accepts a compatible signal, and an optional second argument can select a named account.
Output
Returns the currentsession state.
When status is requires_action, send the selected action response with the same session_id.