

# InvokedBy


Specifies the type of message that triggers a bot.

## Contents


 ** StandardMessages **   <a name="chimesdk-Type-InvokedBy-StandardMessages"></a>
Sets standard messages as the bot trigger. For standard messages:  
+  `ALL`: The bot processes all standard messages.
+  `AUTO`: The bot responds to `ALL` messages when the channel has one other non-hidden member, and responds to `MENTIONS` when the channel has more than one other non-hidden member.
+  `MENTIONS`: The bot processes all standard messages that have a message attribute with `CHIME.mentions` and a value of the bot ARN.
+  `NONE`: The bot processes no standard messages.
Type: String  
Valid Values: `AUTO | ALL | MENTIONS | NONE`   
Required: Yes

 ** TargetedMessages **   <a name="chimesdk-Type-InvokedBy-TargetedMessages"></a>
Sets targeted messages as the bot trigger. For targeted messages:  
+  `ALL`: The bot processes all `TargetedMessages` sent to it. The bot then responds with a targeted message back to the sender. 
+  `NONE`: The bot processes no targeted messages.
Type: String  
Valid Values: `ALL | NONE`   
Required: Yes

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/chime-sdk-identity-2021-04-20/InvokedBy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/chime-sdk-identity-2021-04-20/InvokedBy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/chime-sdk-identity-2021-04-20/InvokedBy) 