Sync contacts from Slack to MySQL
BotsArtificial IntelligenceDatabase
What it does
When someone runs the new sql add contact command in Slack, this automation upserts the contact to the Contacts table in MySQL. The channel gets a message confirming the contact was added or updated.
Who it's for
Operations teams who manage contacts in MySQL and need to add or update records from Slack.
Apps used
How teams use this
Add contacts from Slack without MySQL access
Run the new sql add contact command to create a contact in MySQL from Slack. The team never has to open MySQL or manage database access for this task.
Let customer support update contact records
Invite the bot to the support channel so agents can run the new sql add contact command to add or update contacts in MySQL during conversations.
Add email validation before upserting
Set a condition to check if the email is valid before the contact is upserted to MySQL. Invalid entries are rejected with a message in Slack.
How it works
- Run the sql add contact command. Type the new sql add contact command in a Slack channel or direct message with the contact details needed for MySQL.
- Upsert the contact row. Upsert the contact to the Contacts table in MySQL so a new row is created or an existing one is updated based on the command data.
- Confirm the contact was saved. Post a message in Slack so the channel knows the contact was added or updated in MySQL.