examples/integrations/slack/README.md
Steps to create and configure a Slack bot:
SLACK_SIGNING_SECRET:
SLACK_BOT_TOKEN:
.env file in the root directory of your project and add the following lines:
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_BOT_TOKEN=your-bot-token
/invite @your-bot-name command in the Slack channel where you want the bot to be active.examples/slack_example.py to start the bot with your bot token and signing secret.To expose your local server to the internet, you can use ngrok. Follow these steps to install and start ngrok:
ngrok http 3000
3000 with the port number your local server is running on.If you need to update the request URL (e.g., when the ngrok URL changes), follow these steps:
https://<ngrok-id>.ngrok-free.app/slack/eventsTo run this example, you need to install the following packages:
fastapiuvicornslack_sdkYou can install these packages using pip:
pip install fastapi uvicorn slack_sdk