Sending messages to an AppInstanceBot - Amazon Chime SDK

Sending messages to an AppInstanceBot

You use the SendChannelMessage API to send messages to an AppInstanceBot. You send the messages to the channel in which the AppInstanceBot is a member. If the natural language understanding model recognizes the message content and elicits an Amazon Lex intent, the AppInstanceBot responds with a channel message and initiates a dialog.

You can also send target messages to a member of the channel, which could be an AppInstanceUser or an AppInstanceBot. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.

The following example shows how to use the AWS CLI to send a channel message.

aws chime-sdk-messaging send-channel-message \ --chime-bearer caller_app_instance_user_arn \ --channel-arn channel_arn \ --content content \ --type STANDARD \ --persistence PERSISTENT