Message categorization with Amazon Bedrock

Message categorizing with AWS Step Functions, Amazon Bedrock and Amazon Simple Queue Service.

The provided example demonstrates the deployment of a serverless application using the AWS Serverless Application Model (SAM) template.
This Express state machine is designed to categorize messages into queues for further processing based on business needs.
It uses the input message from the user to invoke an language model through Amazon Bedrock which will return a category for the message.
The output from the model is returned to Step Functions which will further route the message to a correct SQS queue for further processing.
If no queue is found, Step Functions will send the message to a default queue.
The SQS queue processing is not included as part of this example but showcases the capabilities for message routing based on LLM categorization.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/categorization-state-machine/cd step-functions-workflows-collection/categorization-state-machine

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

sam delete

Created by:

Carita Niskanen

Carita Niskanen

Carita is a Solutions Architect at Amazon Web Services (AWS) based in Helsinki, Finland.

Follow on LinkedIn