Skip to content

CustomActionAttachment

Source code in docs_src/capo_chatbot/types/custom_action_attachment.py
class CustomActionAttachment(TypedDict, closed=True):
    notification_type: NotRequired[
        "capo_chatbot.types.custom_action_attachment_notification_type.CustomActionAttachmentNotificationType"
    ]
    """<p>The type of notification that the custom action should be attached to.</p>"""
    button_text: NotRequired[
        "capo_chatbot.types.custom_action_button_text.CustomActionButtonText"
    ]
    """<p>The text of the button that appears on the notification.</p>"""
    criteria: NotRequired[
        "capo_chatbot.types.custom_action_attachment_criteria_list.CustomActionAttachmentCriteriaList"
    ]
    """<p>The criteria for when a button should be shown based on values in the notification.</p>"""
    variables: NotRequired[
        "capo_chatbot.types.custom_action_attachment_variables.CustomActionAttachmentVariables"
    ]
    """<p>The variables to extract from the notification.</p>"""

button_text instance-attribute

button_text: NotRequired[CustomActionButtonText]

The text of the button that appears on the notification.

criteria instance-attribute

criteria: NotRequired[CustomActionAttachmentCriteriaList]

The criteria for when a button should be shown based on values in the notification.

notification_type instance-attribute

notification_type: NotRequired[CustomActionAttachmentNotificationType]

The type of notification that the custom action should be attached to.

variables instance-attribute

variables: NotRequired[CustomActionAttachmentVariables]

The variables to extract from the notification.