The Artist is a Slack chatbot with the ability to draw fantastic AI images.
it allows Slack users to use the Midjourey alike Slash command to generate the image.
This app is based on Slack Bolt project with the Socket Mode enabled. It could be deployed to the environment that with Node.js runtime to run the service.
Before you start the deployment, Please ensure you have the following items ready.
- An OpenAI API keys with quota.
- A Slack account with permission to create new app for specific workspace.
- A Self-hosted server that with Node.js installed or some PaaS platforms that could run Node.js apps.
- Create a new app from slack through this URL
https://api.slack.com/apps
(Click the green button:Create New App
) - Choose
From an app manifest
- Select an workspace you want to add The Artist chatbot to.
- Copy and paste the content form: manifest.json to the editor and click
Next
- Confirm the information and choose
Create
. then your App is created. - On the App detail page. in the App-Level Tokens section, please click
Generate Token and Scopes
button. - Input the Token name like:
Artist Chatbot app token
, and Choose the scopes:connections:write
,authorizations:read
,app_configurations:write
and clickGenerate
mnow you getApp Token
- Click the
Install to Workspace
button to install the bot to your Workspace. once it is done, you could get theOAuth Token
on theOAuth & Permission
page.
OPENAI_API_KEY
: Your OpenAI API keySLACK_APP_TOKEN
: Slack App token. it usually starts withxapp-
SLACK_BOT_TOKEN
: Slack Bot OAuth token,it usually starts withxoxb-
# Clone the repo
> git clone git@github.com:RightCapitalHQ/artist.git
# Build
> cd artist
> pnpm install
? pnpm build
# Please run the chatbot server by executing the following command: (Make sure you have set up the environment variables correctly)
> node ./dist/app.js
If you would like to deploy it on Heroku, please refer to this documentation for more detailed information.
/imagine prompt text {optional more options}
Generate an image: /imagine 3D render a diver meeting a sea turtle in the ocean
Generate an image with specific size: /imagine 3D render a diver meeting a sea turtle in the ocean -s 1024x1024
Generate N images: /imagine 3D render a diver meeting a sea turtle in the ocean -n 4
Generate a variation of an existing image: /imagine https://pasteboard.co/eOfZLkEY9TRU.png -v
Create an image by filling in the transparent areas of the uploaded image: /imagine https://pasteboard.co/itau62RNCgna.png A minimalist and plain logo of a cat chatbot. -e
Coming soon.
MIT License © 2023-Present