AWS Chatbot is now Amazon Q Developer. Learn more
You can create custom actions using Lambda functions in your account, using the Amazon Q Developer API, or by entering AWS CLI commands. AWS CLI command Shortcuts function similarly to Command aliases.
To create a Lambda action
-
Choose the vertical ellipsis button on the bottom of a notification in your chat channel.
-
In Manage actions, choose Create.
-
Enter a custom action name. This name is a unique identifier for your custom action.
-
Enter a name for your custom action button. This name is shown on a button on your notification. This name should be 20 characters or less and can incorporate emojis.
-
For Custom action type, select Lambda action.
-
Choose Next.
-
Select an AWS account.
-
Select a Region.
Note
The available Lambda functions are populated from this account and Region.
-
Choose Load Lambdas.
-
In Define Lambda Function, select a Lambda function.
-
Enter your payload.
Note
We expose predefined variables from your custom notifications as useable variables.
-
(Optional) Add more variables by choosing + Add more variables.
-
Choose Next.
-
(Optional) Add additional display criteria:
Select a variable.
Select a condition.
Choose Add.
-
Choose Save.