Skip to navigation

Notify

View as Markdown

What Notify does

Notify pulls compound actions into the chat spotlight, sending messages to specific users with embedded actions, shown as buttons, that can perform various actions when clicked.

Action types

TypeFunction
Content ActionDeliver an inline message. Ideal for links or summaries
System ActionTriggers an action or compound action with input arguments
Conversation ActionStarts a conversational process. Inputs args must be declared as slots in the process.

Choose a button type

Each button runs one action type. Pick it by what should happen when the recipient clicks:

If the button should…UseFor example
Show a fixed message, or open a linkcontent_actionA View Ticket button that opens the ticket
Run an action or compound action straight awaysystem_actionA Convert to Bug button that runs the conversion
Ask the recipient for more input before actingconversation_actionA Send Back button that collects a reason

When a content_action message is only a URL, the button opens that URL instead of posting a message. To give the recipient several choices, add a button for each one to actions. To collect several inputs, such as the fields of a form, use a conversation_action and declare each input as a slot in the conversational process.

Button expiration (TTL)

Buttons generated by a Notify step follow the same TTL as other AI Assistant buttons — they should be clickable for 30 days after delivery (pending confirmation). See URL Hyperlink & Button Expiry Specs for the full breakdown.

️ IMPORTANT NOTE:

Requirements for calling a conversation action

To ensure your action is triggered correctly, please note the following:

  • Use the Conversational Process Name: When calling the action, specify the name of the conversational process itself, not the name of the plugin.
  • Conversational Action input_args: These must be declared as slots in the conversational process in order to reference the data passed in as input args.

Low-code editor

Add a Notify step, define the recipient, the content of the message they are receiving, and what actions they’ll be provided with.

  1. Prepare Essentials: Set the notification’s recipient, informational message, and optionally provide image URLs to display in the notification.

  1. Add Actionable Task: Add a button that can trigger an HTTP, compound, or script action.

  1. Start a Conversation: Add a button that invokes a conversational flow with the user.

  1. Add More Content: Provide a button that provides inline content that doesn’t require fetching or starting a conversation.

Syntax reference

Schema

notify: # Delivers message + buttons to user
output_key: RESULT_VAR* # str: Stores interaction results
recipient_id: USER_ID* # str: e.g., data.target_user.record_id
message: MSG_EXPR* # DSL str or RENDER() template
image_urls: # Optional list[str]: Images shown in notification
- IMAGE_URL
resources: # Optional list[dict] only available in pro-code
- name: RESOUCE_NAME # str: no dsl evaluation just type out string
datatype: DATA_TYPE # datatype: no dsl evaluation just type out string
value: VAL # DSL of datatype declared above
actions: # Optional list[dict]
- key: ACTION_KEY # Unique str ID
label: BUTTON_TEXT # Display DSL str
# ONE of:
content_action:
message: CONTENT_MSG
system_action:
action_name: ACTION_NAME
input_args:
key: VAL
conversation_action:
conversation_process_name: PROCESS_NAME # Published plugin
input_args:
slot_name: VAL # Match process slots

Fields

FieldTypeMandatoryDescription
output_keystringYesCaptures button outcome. Currently returns NULL
recipient_idstringYesID of the target user
messagestringYesDSL expression field
image_urlslist[str]NoImage URLs displayed in the notification
actionslist[dict]NoButtons displayed to user
resourceslist[dict]NoPass additional context to the reasoning engine

Resources schema

FieldTypeMandatoryDescription
namestringYesName of the resource
datatypestringYesDatatype of value; options here
valueanyYesDSL expression field: Value of data to pass as context

Action type fields

FieldKeysUse Case
content_actionmessageQuick info drops.
system_actionaction_name, input_argsInvoke actions
conversation_actionconversation_process_name, input_argsStart conversational processes

Notify delivery, button and image limits

These limits apply to every notify step:

  • Delivery: Each time a notify step runs, it sends one chat message from the assistant to one recipient. Notify doesn’t send email. To notify several people, put the notify step in a for loop over the recipients.
  • Button styling: A button has only a key, a label and one action type. There’s no field for button color or style, and saving fails if a button has any other field.
  • Button inputs: A system_action or conversation_action button needs input_args, even when it passes nothing. Use input_args: {} for a button with no inputs.
  • Button keys: Each key starts with a letter, uses only letters, numbers and underscores, and is 2 to 64 characters long.
  • Output key: output_key starts with a letter or an underscore, uses only letters, numbers and underscores, and is up to 64 characters long.
  • Images and attachments: Add images with image_urls, a list of image URLs that show in the message. Notify has no field for file attachments.

Tool Studio doesn’t check the button input and key rules when you save the compound action. It checks them when you test or validate it, and a broken rule fails with a general error that doesn’t name the field. To find the cause, see Testing a compound action fails with “Sorry we cannot process your request this time”.

Use loop variables in a notify step

Inside a for loop, refer to the current item by its each name, such as ticket.display_id, not through data. Notify works out the message, each button’s label and each button’s input_args when the step runs, so the buttons in each notification keep the values from their own iteration.

This fragment sends each ticket’s assignee a notification with a button for that ticket. Each item in data.tickets is assumed to have display_id and assignee_record_id fields:

- for:
each: ticket
in: data.tickets
output_key: ticket_notifications
steps:
- notify:
output_key: ticket_notification
recipient_id: ticket.assignee_record_id
message:
RENDER():
template: "Ticket {{id}} is assigned to you."
args:
id: ticket.display_id
actions:
- key: convert
label: "'Convert to Bug'"
system_action:
action_name: convert_support_issue_to_known_bug
input_args:
support_ticket: ticket

Resources

Resources are an optional field that can be used in the pro-code syntax. These are used for passing additional data as context for the LLM. These can be used situationally for giving the llm additional data to reference when using a follow up action such as passing a string to the LLM for SDA reasoning.

"instructions": "Analyze the data for the top commented on tickets"

Example: Enforcing specific analysis on an action button click

# input args: data.tickets
notify:
output_key: user_choice
recipient_id: data.target_user.record_id
message:
RENDER():
template: "Click the button below for insights on the top commented tickets"
args:
id: data.ticket.id
resources:
- name: instructions
datatype: string
value: '"Analyze the data for the top commented on tickets"'
actions:
- key: view
label: "'View Tickets'"
system_action:
action_name: retrieve_all_tickets
input_args:
support_tickets: data.tickets

Practical examples

Example 1: Simple ticket alert

Notify assignee with a link

notify:
output_key: alert_sent
recipient_id: data.target_user.record_id
message:
RENDER():
template: "Hello {{name}}, [<b>T-{{id}}</b>]({{link}}) assigned to you. Follow runbook."
args:
name: data.target_user.first_name
id: data.ticket.display_id
link: data.ticket.url

Expectation: User will receive a simple notification message with the ID of the ticket they were assigned

Example 2: Multi-option response

Offer multiple options to the user

# input args: data.ticket
notify:
output_key: user_choice
recipient_id: data.target_user.record_id
message:
RENDER():
template: "Ticket {{id}} assigned—act now."
args:
id: data.ticket.id
actions:
- key: view
label: "'View Ticket'"
content_action:
message:
RENDER():
template: "View ticket {{id}}"
args:
id: data.ticket.id
- key: convert
label: "'Convert to Bug'"
system_action:
action_name: convert_support_issue_to_known_bug
input_args:
support_ticket: data.ticket

Expectation: User will receive a notification about a ticket that was assigned to them. They will be provided two buttons, one to look at the ticket and one to convert the ticket.

Example 3: Handoff to conversation

Alert the user and collection more information

# input args: data.ticket
notify:
output_key: handoff_result
recipient_id: data.target_user.record_id
message:
RENDER():
template: "[{{id}}]({{url}}) assigned—need details?"
args:
id: data.ticket.display_id
url: $CONCAT(["https://notion.so/", data.ticket.sys_id], "")
actions:
- key: send_back
label: "'Send Back'"
conversation_action:
conversation_process_name: collect_reason_for_send_back_and_send_case_back_to_case_owner
input_args:
support_ticket: data.ticket

Expectation: User receives the notification and are prompted to start a conversational process to send back the ticket for more information.

Example 4: Notification with images

Include images in a notification using the image_urls field.

notify:
output_key: image_notification
recipient_id: data.target_user.record_id
message:
RENDER():
template: "Here are the latest charts for project {{name}}."
args:
name: data.project.name
image_urls:
- data.project.chart_url
- data.project.timeline_url

Expectation: User receives a notification with the message and the referenced images rendered inline.

Troubleshooting

Notify actions not appearing in Tool Studio logs

Notify actions may not appear in Tool Studio execution logs, even when the notification is successfully delivered. This is a known limitation that affects troubleshooting.

Logging limitation

When a notify step fails silently or does not send as expected, Tool Studio logs may not show any invocation record for the notify action — neither a success nor a failure entry. This applies regardless of your role, including Super Admin and Elevated Tool Studio Logs Viewer.

Workarounds:

  • Verify the recipient_id resolves to a valid user by logging it in a prior step.
  • Test with a minimal compound action containing only the notify step to isolate the issue.
  • If using notify inside a for loop, test with a small iteration count first to rule out timeout or memory limits.
  • Confirm the recipient has an active chat platform connection (e.g., Slack, Teams) — notify requires a reachable messaging channel.

Recipients get duplicate notifications from a loop

Check: Look for a notify step inside a for loop, a parallel loop or nested loops, and for a recipient who appears more than once in the list the loop runs over.

Cause: Each run of a notify step sends a new notification. Notifications aren’t merged, even when the recipient and the message are the same.

Fix:

  1. If each person needs only one message, remove repeated recipients from the list before the loop, for example with a script action.
  2. If the loop builds up information for one person, move the notify step after the loop and build the message from the loop’s output_key.

Confirm: Run the compound action again. Each recipient gets one message per run.

Saving fails with “is a required property”, “is not of type ‘object’” or “Additional properties are not allowed”

These errors appear when you save a compound action, before you can test it.

Check: Read the error message for the field it names, and compare your step with the schema in the syntax reference on this page.

Cause: The notify step doesn’t match its schema. An error that says a value is not of type 'object' usually means the fields under notify: aren’t indented beneath it, so the editor reads notify as empty. An error that says Additional properties are not allowed names a field that notify doesn’t have, such as email or attachments. An error that says a field is a required property means a required field is missing. The required fields are:

  • On notify: output_key, recipient_id and message.
  • On each button in actions: key, label and exactly one of content_action, system_action or conversation_action.
  • On system_action: action_name. On conversation_action: conversation_process_name. On content_action: message.

A button with a missing or extra field can fail with a longer error that says it is not valid under any of the sub schemas of 'oneOf'. Look in that error for the field it names.

Fix: Indent every field one level deeper than the key it belongs to, using spaces rather than tabs, remove any field notify doesn’t have, and add any missing required field. This complete step passes the schema:

steps:
- notify:
output_key: notify_result
recipient_id: data.target_user.record_id
message: "'You have a new task.'"
actions:
- key: view_task
label: "'View Task'"
content_action:
message: "'Open the task from your task list.'"

Confirm: The compound action saves without an error.

Testing a compound action fails with “Sorry we cannot process your request this time”

This error, with error code 11500, can appear when you test or validate a compound action that saved without a problem.

Check: In each notify step, look for a system_action or conversation_action button without input_args, and for a button key or output_key that breaks the naming rules in Notify delivery, button and image limits.

Cause: Saving checks only the shape of the notify step. Testing and validating also check button inputs and key names, and report a broken rule with this general message instead of naming the field.

Fix:

  1. Add input_args to each system_action and conversation_action button. Use input_args: {} if the button passes nothing.
  2. Rename any key or output_key that breaks the naming rules.

Confirm: Test the compound action again. The test runs without the error.

Logs show “Follow-up actions:” after the notification message

Check: Compare the log entry with the message the recipient got.

Cause: The log entry for a delivered notification adds Follow-up actions: and the button labels after the message text, so the log records which buttons were sent. The recipient’s message doesn’t include that text.

Fix: No fix is needed.