Communication

Extract MySQL data and send to Slack channels

20 nodes 125 94 Manual trigger
Download

Workflow Description

Automate data retrieval from MySQL databases and transmit transformed information to Slack channels on manual trigger. Includes email monitoring, field mapping, file compression, and XML processing for comprehensive data workflows.

How it works

  1. 1.Read data from specified MySQL tables and queries
  2. 2.Transform and filter data using conditional logic and field renaming
  3. 3.Send formatted results to designated Slack channels
  4. 4.Log completion status via email notifications

Use cases

  • Share daily sales reports from MySQL directly to team Slack channels
  • Notify managers of database alerts and metrics in real-time

Requirements

  • Active MySQL database credentials with read access
  • Slack workspace with bot permissions for message posting

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Email Read Imap MySQL Rename Keys Slack Email Send

Details

Trigger Manual trigger
Nodes 20
Apps 5
Views 125
Downloads 94

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (20)

/

Email Trigger (IMAP)

Email Read Imap

#1

End date format

Date Time

#2

If multiple records to parse

If

#3

Map fields for DB input and parse

Set

#4

Begin format date

Date Time

#5

Input into database

My Sql

#6

If issue with DKIM or SPF

If

#7

Rename Keys

Rename Keys

#8

Rename column for consistency

Set

#9

Sticky Note

Sticky Note

#10

Unzip File

Compression

#11

Extract XML data

Extract From File

#12

Parse XML data to JSON

Xml

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Split Out For Separate Entries

Split Out

#16

Sticky Note3

Sticky Note

#17

Sticky Note4

Sticky Note

#18

Slack Post Message On Channel

Slack

#19

Send Error Notification Email

Email Send

#20