aws_bedrock_chat
The AWS Bedrock Chat Module integrates AWS-powered Generative AI functionalities into Drupal 10 and 11 websites, offering a seamless user experience for live chat interactions.
Features
- Allows leveraging Generative AI through AWS Bedrock to build a personalized chat for your users based on a knowledge base or agent created from your information.
- AJAX-powered chat interface for real-time interaction.
- Configuration options for AWS authentication, including AWS Profile, Access/Secret Keys, Environment Variables.
- Easily change your Model ARN, Knowledge Base, Agent and Search Type on the fly to provide different chat search methods.
- Customizable chat UI with options for setting icons and colors through the module customization page.
- Chat interface translation for multilingual sites using the Drupal core Language module.
- Powered by Retrieve and Generate functionality available with Anthropic Claude models.
Post-Installation
Navigate to the module's settings page.
1. Input Credentials Directly or Set Environment Variables:
Navigate to the Drupal admin interface, and go to Configuration > Web services > AWS Bedrock Chat Settings (/admin/config/services/aws-bedrock-chat). Fill in the necessary AWS configurations.
Or set the proper environment variables
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN (optional)
Or
AWS_REGION
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_CREDENTIAL_EXPIRATION
2. Set Permissions:
Set appropriate permissions for the module under People > Permissions (/admin/people/permissions), ensuring only authorized roles can manage chat settings. Access to the configuration page is available for any user with the administer site configuration permission. Access for individual tabs (configuration, customization and translation) can be delegated via permissions page.
Usage
Once configured, the AWS Bedrock Chat block can be placed in any region through the block layout interface (/admin/structure/block). After placement the chat interface will appear in the selected region and will be fixed to the bottom right by default. Additional page or role visibility can be set through the block configuration.
The chat block can also be placed directly on your theme's twig templates using custom code or the Twig Tweak module.
Additional Requirements
If installing with composer the AWS SDK dependencies will automatically be installed. See Install the AWS SDK for PHP for additional instructions for downloading the AWS SDK.
Recommended modules/libraries
Twig Tweak is recommended for the manual placement of the chat block on templates.