Here are the steps to use Power Automate to send a chat message when a keyword present in an uploaded file is mentioned by someone:
- Choose the "When a file is created or modified (properties only)" trigger in Power Automate.
- Configure the trigger by selecting the desired folder and file types to monitor.
- Add a "Get file content" action to get the text content of the uploaded file.
- Use a "Condition" action to check if the keyword is present in the file content.
- If the condition is true, add a "Send a message as a bot (V3)" action to send a chat message to the desired channel or user.
Note: The "Send a message as a bot (V3)" action requires creating and registering a Microsoft Bot Framework bot. You will need to provide the bot ID, bot password, and target chat ID or email address as parameters.