Service created on Microsoft Azure on region canadacentral-01
Chatbot is to be deployed as subject tutors
To install dependencies use
pip install -r requirements.txt
To run the project locally use
uvicorn main:app --reload
To check the fastapi performace use ngrok
ngrok http 8000
Use flask to run project
python app.py
This README provides a step-by-step guide on how to host and deploy your chatbot on Microsoft Teams and Google Chat.
- An active account with Microsoft Azure.
- An active Google Cloud account.
- Basic understanding of how to work with APIs and webhooks.
- Your chatbot code deployed and accessible over the internet (e.g., using services like Heroku, AWS, or ngrok for local testing).
- Go to the Microsoft Teams Developer Portal and sign in.
- Click on Apps and select Create a new app.
- Fill in the app details (name, description, icons).
- Add Bot as a capability and configure your bot settings.
- Visit the Azure Portal.
- Search for Bot Services and create a new bot registration.
- Enter your bot’s name, messaging endpoint, and select the appropriate pricing tier.
- Save the App ID and generate a password (client secret) for authentication.
- Ensure your bot's server is deployed and accessible.
- Update the messaging endpoint in Azure Bot Service with your bot’s URL (e.g.,
https://<your_ngrok_subdomain>.ngrok.io/chat
).
- Use the App Studio in Microsoft Teams to add your bot to a team or a chat.
- Send messages to your bot and check its responses.
- Monitor logs in your bot’s server for any errors.
- Go to the Google Cloud Console.
- Click on Select a Project and then New Project.
- Name your project and enable billing.
- In your Google Cloud project, navigate to APIs & Services > Library.
- Search for Google Chat API and enable it for your project.
- Navigate to APIs & Services > Credentials.
- Create credentials for a Service Account and generate a private key (JSON format).
- Use Google Cloud Functions or App Engine to deploy your chatbot code. Ensure that the webhook endpoint is properly set.
- Go to Google Chat and invite your bot to a chat room or start a direct message with it.
- Test the bot by sending messages and verifying its responses.
- Check your server logs for any issues.
You have successfully hosted your chatbot on both Microsoft Teams and Google Chat. Make sure to continuously monitor and improve your bot based on user feedback. For further enhancements, explore additional capabilities provided by both platforms.