Send project name from MySQL to Slack
BotsDatabase
What it does
When someone runs a command in Slack, this automation queries the centros_contables table in MySQL. It sends matching project names back to the channel so someone knows what was found.
Who it's for
Operations teams who need to look up project names from MySQL without leaving Slack.
Apps used
How teams use this
Look up a project from Slack
Run the command with a project identifier and get the name back instantly in the conversation. No one has to log into MySQL or check a separate system.
Let finance teams find cost centers
Invite the bot to a finance channel so accounting staff can search centros_contables by code and see project names. The same automation works for a different team and use case.
Include the cost center code in replies
Set the MySQL query to fetch both the project name and the cost center code, then send both fields back to Slack. This adds context to every response without changing the core flow.
How it works
- Run the project lookup command. Type the command in a Slack channel or direct message to search for a project name in the centros_contables database.
- Search the centros_contables table. Query MySQL to find rows in the centros_contables table that match the command input and retrieve the project name data.
- Reply with the project name. Send the matching project name from MySQL back to Slack so the channel sees the result of the search immediately.