Creating AIOPS Chatbot with Amazon Q Business Custom Plug

Many organizations rely on applications and services from separating their various features, such as planning, HR management, financial data, CMRM), and more. However, these programs are usually available on Silos, require users to be able to navigate the unique locations, and perform repeated activities, which can be time-consuming.
In addition, while many API businesses are included in combinations, users are often united with the APIs. As a result, organizations need an intuitive and non-solid method to ask the data and perform actions throughout the app using the environmental language, without requiring special information of each program or the APIs.
Dealing with the challenge of integrating systems from the Unified applications, users can use Amazon Q. Plugins. Amazon Q Business supports many plugins with many plugins with pre-collapses, as well as customer plugins, that users can use compound business programs by Amazon q Business application.
Looking for everything
In this post, we show how you can use the plugins for Amazon q business to build Chatbot that does not work with many APIs using the ribbons of the environment. We show how to build Aiops Chatbot empowering users to interact with their military infrastructure with questions of natural language and instructions. Chatbot is able to manage the data such as Amazon's Lastic Compute computes (Amazon EC2) ports to access bakers and Amazon Storage Service (Amazon S3) Bakids to access bakings (Amazon S3). For example, users can ask Chatbot questions such as “What conditions in EC2 have an open port 3389?” or request actions such as “please close the S3 bucket access.”
By combining other AWS services This solution aims to manual intervention and facilitate complex cloud performance by enabling infrastructure management groups through natural language work. Chatbot will improve the work functions, reduce the need to change between different tools, and develop partnerships and work groups by allowing them to participate with complex users.
Architecture
To use the solution, you will build the following construction.
Users sign in Aipops Chatbot using the configurable authentication at AWS IAM IDity Center. You will use the public access from S3 buckets and to get certain ports open in Aisison EC2 plugins Q. However, you can add the construction to support charges of API.
Using infrastructure required using a request model with no AWS (AWS SAM).
The following is a summary of buildings:
Requirements
Serve and use the solution
Resources in this indication will be provided in the US East (N. Virginia) AWS (US-EAST-1) region. You travel in the following categories to use a model's travel model:
- Use a solution using the AWS Sample
- Prepare User for AIOPS Q Business Chatbot app
- Check Aisops Q Business Chatbot
- Clean
Step 1: Use a solution using the AWS Sample template
See Gitub's residence with recent instructions. Run the following steps to send AWS Workflow steps using the AWS Samplet.
- Create a new directory, hang from that identifier in the furnace, and integrate the Githabab storage:
2. Change the guide to the direction of the solutions:
3. Run the following command to use the services using Sam.
4. When prompted, enter the following parameter values:
5. Note the results from the process of AWS Deplitionment. This contains amazon q business experience (Chatbot) URL. Before you can sign in to Chatbot program, you must set the user.
Step 2: Prepare User AIPS Q Business Chatbot Application
Use the following steps to configure the user for the AIOPS Chatbot app.
- Open Amazon q business from the console and select Aiops The application.
2. Choose Manage access and subscriptions.
3. Choose Insert groups with users.
4. Choose or Enter and assign new users or Give existing users and groups It depends on whether you made the user before as stated for requirements and choose Next.
5. If you have an existing user you want to provide your access Aiops Request, search and select User Name and select Send.
6. On the update page, select current subscription and select Impress.
Step 3: Check the Aisops Q Business Chatbot
Use the following steps to access Chatbot and test it. Answers from large language models have no benefit. Therefore, you may not get the same answer all the time.
- Take
QBusinessWebExperienceURL
from thesam deploy
issuing using certified user in previous step. - After signing in to Aiops ChatbotSelect the Kebab menu option (three dots) in the lower right corner and select Aiopscustompin Next:
3. Enable social access to the baked bucket of Amazon S3. This is done only for test objectives only, so check out the policies of your organization before making this trial. With this demo we used a bucket called a word aiops-chatbot-demo
.
4. Back to Aipops Chatbot and enter a question such as: Do I have any S3 bucket with public access?
and select Place down. Provide a bucket start to minimize the search.
5. AIOPS Chatbot identifies buckets with social access:
6. Ask the next question such as: Please block the public access
. Chat Bot blocks public access. Confirm change from S3 console.
7. Open the hole, like 1234
In the form of Amazon EC2 we use the laws of the Security Group.
8. Return to Chat Bot and enter a question such as: Do I have any EC2 instance with port 1234 open?
9. After Chat Bot identifies EC2 example with an open port, make sure you want to close the port.
10. The Chat Bot closes open hole and confirms.
Clean
Proper AWS resources provided is a very important custom of expanding costs and improves security standing after concluding evidence of the concept and demonstrations. Deleting resources sent to your AWS account through the AWS SAM, run the following command:
OPENPI SCHEMA Description
After the custom plugin is transferred, the Amazon q business will process the user immediately and uses Openapi Schema to define the correct API purpose. Therefore, the description of the Openapi Schema has a significant impact on the accuracy of API candidates. Follow the best ways of the meaning of the Openapi Schema of the relevant results. The Aviops Chatbot showed four activities supported by the following API activities:
find-s3-bucket-with-public-access
– This API finds S3 buckets containing the beginning and prepared for public access.remove-public-access-from-s3-bucket
– This API removes social access from some S3 bucket.find-ec2-with-specific-open-port
– This API receives EC2 conditions with a specified port of access.close-unwanted-port-for-ec2
– This API removes the specified port from the EC2 provided.
API performance is done using API Gateway and Lambda activities.
Troubleshooting
Following some steps to solve the problem when you experience errors while using Aiops Chatbot.
- As Amazon I is a business in control of the Scriptural jobs of API to destroy, questions (Prompts) must be unpleasant. Break up rather than ask regular questions. For example:
Do I have any EC2 instance with port 1234 open
? instead ofDo I have any EC2 exposed to internet
? - APIs are exposed using API Gateway supported by Lambda activities. Check that you can request API jobs using curl or API testing tools.
- See Lammon Cloudwatch work logs in Amazon Cloudwatch. Follow the steps to correct the lambda error if needed.
Store
In this post, you have learned the end of the ending process of AIOPS Chatbot using the Amazon Q business plugins, indicating how users can use environmental processing AWS and resources. By combining other AWS services with Amazon Q Business, Chatbot may inquire the security and compliance infrastructure while distributing important objects such as the closing of the braces open. This solution promotes performance efficiency, reducing manual intervention, and has enabled teams to manage complexities effectively, converted. With the custom plugins and operapy plugins, users can form a strong, moderate Chatbot variable in their specific work force, to change their activities and respond to business challenges.
An additional study
For more information about Amazon Q and Customs Business Plugins:
About the authors
Pendra v The construction of the SR. Solutions Absocials in Amazon Web Services, professionals in solving AI and cloud solutions. It helps the business customers to designate and submit the production of AI prepared, using large languages of Language (LLMS) and Agentic Ai programs, and performing cloud shipping. Strategic technology is the clouds and a mechanical learning, enables the organizations to build and measure effective apps.
Briwanath Muherjee Is the construction of the highest remedies in Amazon Web Services. He works with large AWors of AWors by providing the technical guidance of the migration of the migration and their modern requests by AWS Cloud. For his widespread knowledge of the clouds and migration, partners and customers to improve new solutions that renew the skin, honesty and AW strength to meet their business needs. His technology is destroying different industries and applying cases, making customers open the full awspelling energy.