type: meya.twilio.flex.component.end_chat
class: TwilioFlexEndChatComponent
path: /meya/twilio/flex/component/end_chat.py
signature: -
Learn more: https://www.twilio.com/docs/flex/developer/messaging/api/chat-channel
Fields
field | signature | required | type | default | description |
---|---|---|---|---|---|
spec | ○ | ○ | Spec | null | Override the original spec for this element |
context | ○ | ○ | dict | {} | Send context data with this component's event |
sensitive | ○ | ○ | bool | true | |
triggers | ○ | ○ | list | [] | Activate these dynamic triggers when the component runs |
text | ○ | ○ | str | null | The last message sent to the agent before closing the Flex channel. |
integration | ○ | ◉ | TwilioBaseIntegrationRef |
Examples
Basic
triggers:
- keyword: meya.twilio.flex.component.end_chat
steps:
- type: meya.twilio.flex.component.end_chat
integration: integration.generic
Full
triggers:
- keyword: meya.twilio.flex.component.end_chat
steps:
- type: meya.twilio.flex.component.end_chat
spec:
type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
context:
STRING: ANY
sensitive: false
triggers:
- type: STRING
data:
STRING: ANY
timeout: 123
trigger_when: ANY
text: STRING
integration: integration.generic