#ActionArtisan(Endpoint in sagemaker is not up)
The ActionArtisan app is a tool designed to assist Dungeon Masters (DMs) in creating vivid and immersive descriptions for various actions and scenarios in their tabletop role-playing games. This app leverages the power of OpenAI's natural language generation to provide dynamic and creative narratives that enhance the gaming experience.
- Generate Descriptions: Quickly create rich descriptions for player actions, combat sequences, environments, and more.
- Seamless Integration: The app's frontend is developed using Flutter, ensuring a smooth and intuitive user experience on Android, iOS platforms and web.
- AI-powered Narration: The app communicates with a AWS Lambda function through API Gateway, which then interacts with an OpenAI API to retrieve narrations based on the input.
- Customizable Narratives: Tailor the generated narratives by providing specific details, tones, or styles, enhancing the uniqueness of your storytelling.
- CI/CD Pipeline: Using Github Actions to build the project, and Amplify to detect the changes and deploy it automatically, the project is automized.
- Clone this repository:
git clone https://github.com/Bepitic/ActionArtisan-LocalLLM.git
The app's backend is powered by AWS Lambda and API Gateway, which communicate with OpenAI's API to generate narrations. Make sure to set up the backend by following these steps:
- Create an AWS Lambda function that handles the API Gateway requests.
- Copy the Lambda file
Lambda_AWS/Lambda_function.py
into aws lambda. - Create a new Environment Variable
KEY
that will contain the API-key in order to acces OpenAI. - Set up an API Gateway with appropriate routes and methods(Push) to trigger the Lambda function.
- Generate an api-key for the lambda function.
- Navigate to the
explain_rol
directory:cd explain_rol
- Add 3 environmental variables,
API_AUTHORITY -> link to the API
,API_PATH ->API path
,API_KEY -> API_KEY
- Install dependencies:
flutter pub get
- Run the app:
flutter build web --dart-define=API_AUTHORITY=$API_AUTHORITY --dart-define=API_PATH=$API_PATH --dart-define=API_KEY=$API_KEY
- Create a new Web app on Amplify.
- Connect your github account and select the repo.
- Click on the check box to indicate that is a monorepo.
- Select the build/web if was compiled localy.
- Or select the artifact/web if compiled with the github actions.
- select the default build config.
- Wait until provision, build and deployment has finished.
- Launch the app on your Android or iOS device.
- Provide the name of the character and its race.
- Provide the difficulty of the action,and the final result of the dice(with all the modificators).
- Tap the "Give me a Narration" button.
- The app will send a request to the serverless backend, which communicates with OpenAI's API.
- Once the narration is received, it will be displayed on the screen.
- Customize the narration further or use it as-is in your game.
- Flutter: https://flutter.dev/
- OpenAI: https://openai.com/
This project is licensed under the GNU-3 License.