• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

New Relic AI integration for Amazon Q Business

preview

We're still working on this feature, but we'd love for you to try it out!

This feature is currently provided as part of a preview program pursuant to our pre-release policies.

The New Relic AI custom plugin for Amazon Q Business integrates New Relic's AI-driven insights directly into the Amazon Q Business environment. This plugin allows you to send user prompts to New Relic AI and receive AI-generated responses, facilitating improved incident response and decision-making processes.

This guide provides instructions to establish a connection between New Relic AI and Amazon Q Business, enabling anomaly detection, real-time alerting, and incident management to maintain application performance and reliability.

Prerequisites

Create IAM Policy and Role

Create an IAM policy and role that grant the New Relic AI plugin permissions to access AWS resources. The policy defines permissions for accessing services such as AWS Secrets Manager, while the role allows Amazon Q Business Business to assume these permissions securely. This setup ensures role-based access control and minimizes direct credential management.

Important

  • Before you create an IAM role, contact to New Relic to get the Client ID and Client Secret.
  1. To create an IAM policy, update and run the following command:

    bash
    $
    aws iam create-policy \
    >
    --policy-name <policy-name> \
    >
    --policy-document '{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": "secretsmanager:GetSecretValue", "Resource": "arn:aws:secretsmanager:<region>:<account-id>:secret:<secret-name>" }] }'
    • Replace <policy-name> with your policy name.
    • Replace <region> with your AWS region.
    • Replace <account-id> with your AWS account ID.
    • Replace <secret-name> with the New Relic provided secret.
  1. To create an IAM role, run the following command:

    bash
    $
    aws iam create-role \
    >
    --role-name <role-name> \
    >
    --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "Service": "qbusiness.amazonaws.com" }, "Action": "sts:AssumeRole" }] }'
    • Replace <role-name> with a name to identify the role..
  2. To attach the policy to the role, update and run the following command:

    bash
    $
    aws iam attach-role-policy \
    >
    --role-name <role-name> \
    >
    --policy-arn arn:aws:iam::<account-id>:policy/<policy-name>
    • Replace <policy-name> with the policy name created in step 1.
    • Replace <role-name> with the role name created in step 2.
    • Replace <account-id> with your AWS account ID.

Create NRAI Plugin

You can create the NRAI plugin manually or by using the AWS CLI.

Communicate with New Relic Agent in Amazon Q Business

After creating the NRAI plugin, you can communicate with the New Relic Agent in Amazon Q Business to send user prompts and receive AI-generated responses.

To access the New Relic agent:

  1. Sign in to AWS Management Console and open the Amazon Q Business console.

  2. Navigate to Applications and select your application.

  3. Access the deployed URL to access the chat assistant.

  4. On the Chat window, click Plugins and select the New Relic AI plugin.

  5. Enter your prompt in the chat window and click the Send icon. You will be prompted to authorize Amazon Q Business to access New Relic account. This is a one-time authorization process.

  6. Click Authorize.

    The New Relic AI agent processes your prompt and returns the response in real-time.

    New Relic AI agent response in Amazon Q Business
Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.