HomeAIUse Amazon Q to seek out solutions on Google Drive in an...

Use Amazon Q to seek out solutions on Google Drive in an enterprise


Amazon Q Enterprise is a generative AI-powered assistant designed to boost enterprise operations. It’s a totally managed service that helps present correct solutions to customers’ questions whereas adhering to the safety and entry restrictions of the content material. You may tailor Amazon Q Enterprise to your particular enterprise wants by connecting to your organization’s data and enterprise methods utilizing built-in connectors to quite a lot of enterprise information sources. It allows customers in varied roles, resembling advertising managers, venture managers, and gross sales representatives, to have tailor-made conversations, resolve enterprise issues, generate content material, take motion, and extra, via an online interface. This service goals to assist make staff work smarter, transfer quicker, and drive important influence by offering fast and related data to assist them with their duties.

Blackview WW

One such enterprise information repository you should utilize to retailer and handle content material is Google Drive. Google Drive is a cloud-based storage service that gives a centralized location for storing digital property, together with paperwork, data articles, and spreadsheets. This service helps your groups collaborate successfully by enabling the sharing and group of necessary information throughout the enterprise. To make use of Google Drive inside Amazon Q Enterprise, you’ll be able to configure the Amazon Q Enterprise Google Drive connector. This connector permits Amazon Q Enterprise to securely index information saved in Google Drive utilizing entry management lists (ACLs). These ACLs be sure that customers solely entry the paperwork they’re permitted to view, permitting them to ask questions and retrieve data related to their work instantly via Amazon Q Enterprise.

This put up covers the steps to configure the Amazon Q Enterprise Google Drive connector, together with authentication setup and verifying the safe indexing of your Google Drive content material.

Index Google Drive paperwork utilizing the Amazon Q Google Drive connector

The Amazon Q Google Drive connector can index Google Drive paperwork hosted in a Google Workspace account. The connector can’t index paperwork saved on Google Drive in a private Google Gmail account. Amazon Q Enterprise can authenticate together with your Google Workspace utilizing a service account or OAuth 2.0 authentication. A service account allows indexing information for consumer accounts throughout an enterprise in a Google Workspace. Utilizing OAuth 2.0 authentication permits for crawling and indexing information in a single Google Workspace account. This put up reveals you learn how to configure Amazon Q Enterprise to authenticate utilizing a Google service account.

Google prescribes that with a view to index a number of customers’ paperwork, the crawler should help the aptitude to authenticate with a service account with domain-wide delegation. This enables the connector to index the paperwork of all customers in your drive and shared drives. Amazon Q Enterprise connectors solely crawl the paperwork that the Amazon Q Enterprise utility administrator specifies should be crawled. Directors can specify the paths to crawl, particular file title patterns, or varieties. Amazon Q Enterprise doesn’t use buyer information to coach any fashions. All buyer information is listed solely within the buyer account. Additionally, Amazon Q Enterprise Connectors will solely index content material specified by the administrator. It gained’t index any content material by itself with out explicitly being configured to take action by the administrator of Amazon Q Enterprise.

You may configure the Amazon Q Google Drive connector to crawl and index file varieties supported by Amazon Q Enterprise. Google Write paperwork are exported as Microsoft Phrase and Google Sheet paperwork are exported as Microsoft Excel throughout the crawling section.

Metadata

Each doc has structural attributes—or metadata—connected to it. Doc attributes can embrace data resembling doc title, doc creator, time created, time up to date, and doc sort.

If you join Amazon Q Enterprise to a knowledge supply, it robotically maps particular information supply doc attributes to fields inside an Amazon Q Enterprise index. If a doc attribute in your information supply doesn’t have an attribute mapping already out there, or if you wish to map further doc attributes to index fields, you should utilize the customized discipline mappings to specify how a knowledge supply attribute maps to an Amazon Q Enterprise index discipline. You may create discipline mappings by enhancing your information supply after your utility and retriever are created.

There are 4 default metadata attributes listed for every Google Drive doc: authors, supply URL, creation date, and final replace date. It’s also possible to choose further reserved information discipline mappings.

Amazon Q Enterprise crawls Google Drive ACLs outlined in a Google Workspace for doc safety. Google Workspace customers and teams are mapped to the _user_id and _group_ids fields related to the Amazon Q Enterprise utility in AWS IAM Id Heart. These consumer and group associations are continued within the consumer retailer related to the Amazon Q Enterprise index created for crawled Google Drive paperwork.

Overview of ACLs in Amazon Q Enterprise

Within the context of data administration and generative AI chatbot functions, an ACL performs a vital position in managing who can entry data and what actions they’ll carry out throughout the system. Additionally they facilitate data sharing inside particular teams or groups whereas limiting entry to others.

On this answer, we deploy an Amazon Q internet expertise to show that two enterprise customers can solely ask questions on paperwork they’ve entry to in response to the ACL. With the Amazon Q Enterprise Google Drive connector, the Google Workspace ACL might be ingested with paperwork. This permits Amazon Q Enterprise to regulate the scope of paperwork that every consumer can entry within the Amazon Q internet expertise.

Authentication varieties

An Amazon Q Enterprise utility requires you to make use of IAM Id Heart to handle consumer entry. Though it’s advisable to have an IAM Id Heart occasion configured (with customers federated and teams added) earlier than you begin, you may also select to create and configure an IAM Id Heart occasion on your Amazon Q Enterprise utility utilizing the Amazon Q console.

It’s also possible to add customers to your IAM Id Heart occasion from the Amazon Q Enterprise console, if you happen to aren’t federating identification. If you add a brand new consumer, be sure that the consumer is enabled in your IAM Id Heart occasion and that they’ve verified their electronic mail ID. They should full these steps earlier than they’ll log in to your Amazon Q Enterprise internet expertise.

Your identification supply in IAM Id Heart defines the place your customers and teams are managed. After you configure your identification supply, you’ll be able to lookup customers or teams to grant them single sign-on entry to AWS accounts, functions, or each.

You may have just one identification supply per group in AWS Organizations. You may select one of many following as your identification supply:

Overview of answer

With Amazon Q Enterprise, you’ll be able to configure a number of information sources to supply a central place to look throughout your doc repository. For our answer, we show learn how to index Google Drive information utilizing the Amazon Q Enterprise Google Drive connector. We full the next steps:

  1. Configure Google Workspace conditions.
  2. Configure an Amazon Q Enterprise utility.
  3. Join Google Drive to Amazon Q Enterprise.
  4. Create customers and index the info within the Google Drive.
  5. Run a pattern question to check the answer.

Configure Google Workspace conditions

For this answer, Amazon Q will hook up with a Google Workspace and crawl Google Drive paperwork owned by enterprise customers in numerous teams utilizing a service account. Full the next steps to configure your Google Workspace:

  1. Log in to the Google API console as an admin consumer.
  2. Select the dropdown menu subsequent to the search field, then select New Mission.

  3. Enter the venture title, select the Google group, and select Create.
    Enter Google API Project Name

The Google Drive and Admin SDK APIs should be enabled for Amazon Q to crawl Google Drive information.

  1. Seek for every API on the Google Cloud console and select Allow.
    Enable Google Drive and Admin SKD APIs
  2. Seek for Service Accounts to entry the IAM & Admin navigation pane and select Create Service Account.
  3. Enter the service account title, service account ID, and outline, and select Accomplished.Create Google Workspace Service Account
  4. Select the e-mail of the service account created within the earlier step.
  5. On the Keys tab, select Add Key, then select Create New Key.
  6. For Key sort, choose JSON, and select Create to obtain and regionally save a brand new personal key.Create JSON Key for Service Account

Now we allow domain-wide delegation for the 5 required API scopes on the Area-wide Delegation web page.

  1. Select Add new.
  2. Add the next comma delimited API scopes for shopper ID generated for the personal key created within the earlier step:
    https://www.googleapis.com/auth/drive.readonly,
    https://www.googleapis.com/auth/drive.metadata.readonly,
    https://www.googleapis.com/auth/admin.listing.group.readonly,
    https://www.googleapis.com/auth/admin.listing.consumer.readonly,
    https://www.googleapis.com/auth/cloud-platform
  3. Select Authorize.
    Authorize Google API Scopes

Now we create customers and add them to teams.

  1. Navigate to the Google Workspace Admin console and select Customers within the navigation pane.
  2. Select Add new consumer to create two new enterprise customers.
    Add New Google Workspace User
  3. Select Teams within the navigation pane.
  4. Select Create group to create two Google teams and add one enterprise consumer to every group.
    Add New Google Workspace group
  5. Add information that Amazon Q helps into every enterprise consumer’s Google Drive.

On this answer, we add the Amazon 2020 annual report to the primary enterprise consumer’s Google Drive and add the Amazon 2021 annual report and Amazon 2022 annual report to the second enterprise consumer’s Google Drive.
Upload Amazon annual reports

The enterprise consumer that uploaded the Amazon 2021 annual report may also share it with the opposite enterprise consumer’s Google group.

  1. Select the choices menu (three vertical dots) for the Google Drive file and select Share.
  2. Enter the title of the opposite Google group and select Ship.

Create an Amazon Q Enterprise utility with a Google Drive connector

An Amazon Q Enterprise utility must be created with a Google Drive connector to crawl and index Google Drive information. To create an Amazon Q utility, full the next steps:

  1. On the Amazon Q console, select Purposes within the navigation pane.
  2. Select Create utility.
  3. For Software title, enter a reputation.
  4. Go away utility configuration settings as defaults.
  5. Select Create.
    Create Q Business Application
  6. After the applying is created, select Knowledge Sources.
  7. Then select Choose retriever and Verify to make use of a Native retriever and Enterprise provisioning.
    Confirm Q Business Application Retriever and Index Provisioning
  8. After confirming retriever settings, select Add information supply, after which select the plus signal subsequent to Google Drive.
    Select Google Drive Data Source
  9. Below Title and outline, enter a knowledge supply title and optionally available description.
  10. Below Authentication, choose Google service account and select Create a brand new secret from the AWS Secrets and techniques Supervisor secret drop all the way down to create an AWS Secrets and techniques Supervisor secret.
    Configure Google Drive Data Source
  11. Enter a secret title, admin account electronic mail, shopper electronic mail, and the JSON key you downloaded earlier, then select Save.
    Enter AWS Secrets Client Id and JSON Key
  12. Below IAM position, select Create a brand new service position.
  13. Below Extra Configuration, select Consumer electronic mail, and add the 2 lately created Google Workspace enterprise consumer electronic mail addresses.
    Add Google Workspace User Email Addresses
  14. Below Sync run schedule, for Frequency, select Run on demand.
  15. Select Add information supply.
    Specify Sync Schedule and Add Data Source

Create and handle customers

To create an Amazon Q internet expertise accessible by Google Workspace customers, you might want to create corresponding customers in IAM Id Heart. Amazon Q functions are solely accessible by IAM Id Heart customers with consumer identities that personal listed paperwork. To create the IAM Id Heart customers, full the next steps:

  1. On the IAM Id Heart console, select Customers within the navigation pane.
  2. Select Add consumer.
  3. Create IAM Id Heart customers that mirror your Google Workspace customers by getting into the required consumer data.
  4. Settle for the IAM Id Heart invitation despatched via electronic mail to every new enterprise consumer and set every enterprise consumer’s IAM Id Heart password.
  5. On the Amazon Q Enterprise console, navigate to the applying with the Google Drive information supply.
  6. Select Handle consumer entry.
  7. Select Add teams and customers, choose Assign current customers and teams, and select Subsequent.
    Add or Assign Users and Groups in Identity Center
  8. Assign customers to the Amazon Q utility, select Assign, and select Verify if every enterprise consumer is subscribed to Q Enterprise Professional.
    Add Users to Q Business Application

After you add IAM Id Heart customers to your Amazon Q utility, its internet expertise URL will seem within the Q Enterprise functions record. You need to use the URL to connect with the Amazon Q internet expertise with both of your Google enterprise customers. By default, every consumer can solely ask questions on paperwork of their Google Drive.

Run pattern queries in Amazon Q

To check the Amazon Q utility with the Amazon annual studies you uploaded to Google Drive, full the next steps:

  1. On the Amazon Q Enterprise console, navigate to the info supply you created.
  2. Run an on-demand sync of the info supply by selecting Sync now.
    Run On-Demand Sync of Google Drive Data Source
  3. Navigate to the internet expertise URL in a brand new personal browser window and log in as the primary enterprise consumer.
    Amazon Q Identity Center Login
  4. Ask Amazon Q a query, resembling what number of staff work at Amazon.

The supply paperwork needs to be the Amazon 2020 and 2021 annual studies, assuming the primary enterprise consumer uploaded the Amazon 2020 annual report and the second enterprise consumer shared the Amazon 2021 annual report with the primary enterprise consumer.
Amazon Q Conversational Interface

  1. Navigate to the net expertise URL in a brand new personal browser window and log in because the second enterprise consumer.
  2. Ask Amazon Q the identical query (what number of staff work at Amazon).

The supply paperwork needs to be the Amazon 2021 and 2022 annual studies.

Troubleshooting

On this part, we share some frequent points and troubleshooting ideas.

IAM Id Heart login error

You may obtain an error on the IAM Id Heart login web page that claims “We couldn’t confirm your sign-in credentials.”
Amazon Q Identity Center Invalid Login

To troubleshoot, full the next steps:

  1. Verify that the enterprise customers that mirror the Google Workspace customers have been created in IAM Id Heart.
  2. If the customers exist, navigate to the consumer in IAM Id Heart and select Reset password, then choose Generate a one-time password and share the password with the consumer.

A password might be offered for login and the consumer might be requested to alter their password after a profitable login.
Amazon Q Business Identity Center Password Reset

Google Drive information supply crawling or indexing failure

If the Google Drive information supply crawling or indexing fails, full the next steps:

  1. Verify the enterprise customers provisioned within the Google Workspace are members of the Google teams.
  2. Examine the Amazon CloudWatch logs for the final time the Google Drive information supply was crawled for customers with Google Drive information within the Google Workspace.
  3. If the crawler didn’t efficiently log the indexing of an anticipated consumer’s information, examine the IAM Id Heart customers, then evaluate the attributes within the Secrets and techniques Supervisor secret to the corresponding Google Workspace attributes, together with shopper ID, service account electronic mail, and repair account personal key.
  4. Use the Amazon Q Enterprise document-level sync studies to verify the meant Google Drive paperwork have been listed by Amazon Q.

Google Drive information supply crawling and indexing job doesn’t crawl and index paperwork

If the Google Drive information supply crawling and indexing job doesn’t crawl and index any paperwork, full the next steps:

  1. Verify the enterprise customers provisioned within the Google Workspace are members of the Google teams.
  2. Verify there are IAM Id Heart customers that mirror the Google Workspace customers.
  3. Verify each IAM Id Heart customers subscribe to Q Enterprise Professional.
  4. Verify the Google Workspace admin consumer has enabled the Google Drive API.

Amazon Q internet expertise doesn’t return anticipated solutions from the anticipated supply

If the Amazon Q internet expertise doesn’t return anticipated solutions from the anticipated supply, full the next steps:

  1. Add the anticipated supply doc into an Amazon Q Enterprise chat session by selecting the paperclip icon within the Amazon Q chat interface after which selecting the file.
    Amazon Q Conversational User Interface File Upload

After you add the doc into the session, if the anticipated solutions are generated from the anticipated doc, the doc wasn’t efficiently listed from the Google Drive information supply.

  1. If Amazon Q doesn’t return the anticipated reply for the uploaded doc, modify the immediate used to ask the query.

Clear up

To forestall incurring further prices, it’s important to scrub up and take away any sources created throughout the implementation of this answer. Particularly, you need to delete the Amazon Q utility, which is able to consequently take away the related index and information connectors. Nevertheless, any Secrets and techniques Supervisor secrets and techniques created throughout the Amazon Q utility setup course of should be eliminated individually. Failing to scrub up these sources could lead to ongoing costs, so it’s essential to take the required steps to fully take away all elements associated to this answer.

Full the next steps to delete the Amazon Q utility, secret, and IAM Id Heart customers in your AWS account:

  1. On the Amazon Q Enterprise console, select Purposes within the navigation pane.
  2. Choose the applying that you just created and on the Actions menu, select Delete and make sure the deletion.
  3. On the Secrets and techniques Supervisor console, select Secrets and techniques within the navigation pane.
  4. Choose the key that was created for the Google Drive connector and on the Actions menu, select Delete.
  5. Specify the ready interval as 7 days and select Schedule deletion.
  6. On the IAM Id Heart console, select Customers within the navigation pane.
  7. Choose the 2 customers that you just created and select Delete customers to take away these customers.

Moreover, you need to take away the enterprise customers added to your Google Workspace throughout the implementation of this answer as a result of Google Workspaces prices are billed on a per-user foundation.

Conclusion

On this put up, you created an Amazon Q utility that listed Google Drive paperwork utilizing the Google Drive connector. You have been in a position to connect with the Amazon Q conversational interface as every of your enterprise customers and ask questions in regards to the paperwork every consumer might entry in accordance with the ACL.

You may proceed to experiment by including extra PDF paperwork to your enterprise customers’ Google Drives and re-syncing your Amazon Q Google Drive information supply.

Amazon Q Enterprise provides different connectors, resembling for Confluence Cloud. To study extra in regards to the Amazon Q Enterprise Confluence Cloud connector, check with Connecting Confluence (Cloud) to Amazon Q Enterprise.


Concerning the Authors

Glen Eire is a Senior Enterprise Account Engineer at AWS within the Worldwide Public Sector. Glen’s areas of focus embrace empowering clients excited by constructing generative AI options utilizing Amazon Q.

Julia Hu is a Specialist Options Architect who helps AWS clients and companions construct generative AI options utilizing Amazon Q Enterprise on AWS. Julia has over 4 years of expertise growing options for patrons adopting AWS companies on the forefront of cloud expertise.



Supply hyperlink

latest articles

Lightinthebox WW
Earn Broker Many GEOs

explore more