Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Creating a custom action using Amazon Q Developer in chat applications

Focus mode
Creating a custom action using Amazon Q Developer in chat applications - Amazon Q Developer in chat applications

AWS Chatbot is now Amazon Q Developer. Learn more

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.

Lambda action
To create a Lambda action
  1. Choose the vertical ellipsis button on the bottom of a notification in your chat channel.

  2. In Manage actions, choose Create.

  3. Enter a custom action name. This name is a unique identifier for your custom action.

  4. 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.

  5. For Custom action type, select Lambda action.

  6. Choose Next.

  7. Select an AWS account.

  8. Select a Region.

    Note

    The available Lambda functions are populated from this account and Region.

  9. Choose Load Lambdas.

  10. In Define Lambda Function, select a Lambda function.

  11. Enter your payload.

    Note

    We expose predefined variables from your custom notifications as useable variables.

  12. (Optional) Add more variables by choosing + Add more variables.

  13. Choose Next.

  14. (Optional) Add additional display criteria:

    1. Select a variable.

    2. Select a condition.

    3. Choose Add.

  15. Choose Save.

AWS CLI command action
To create an AWS CLI command action
  1. Choose the vertical ellipsis button on the bottom of a notification in your chat channel.

  2. In Manage actions, choose Create.

  3. Enter a custom action name. This name is a unique identifier for your custom action.

  4. 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.

  5. For Custom action type, select CLI action.

  6. Enter a command.

    Note

    We expose predefined variables from your custom notifications as useable variables.

  7. (Optional) Add more variables by choosing + Add more variables.

  8. Choose Next.

  9. (Optional) Add additional display criteria:

    1. Select a variable.

    2. Select a condition.

    3. Choose Add.

  10. Choose Save.

To create a Lambda action
  1. Choose the vertical ellipsis button on the bottom of a notification in your chat channel.

  2. In Manage actions, choose Create.

  3. Enter a custom action name. This name is a unique identifier for your custom action.

  4. 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.

  5. For Custom action type, select Lambda action.

  6. Choose Next.

  7. Select an AWS account.

  8. Select a Region.

    Note

    The available Lambda functions are populated from this account and Region.

  9. Choose Load Lambdas.

  10. In Define Lambda Function, select a Lambda function.

  11. Enter your payload.

    Note

    We expose predefined variables from your custom notifications as useable variables.

  12. (Optional) Add more variables by choosing + Add more variables.

  13. Choose Next.

  14. (Optional) Add additional display criteria:

    1. Select a variable.

    2. Select a condition.

    3. Choose Add.

  15. Choose Save.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.