Skip to main content
Footer-logo Scripted-horizontal-dark
Solutions Down-arrow-black
Book-closed
Content Intelligence
Custom analytics to map your content vs. industry and competitive trends and ensure your brand’s message meets the market.
Stars-02
Content Strategy
Daily ideas, recommendations and strategies to optimize performance across every marketing channel.
Life-buoy-01
Content Production
Create content at scale for every marketing channel in your brand’s unique voice.
Play-circle
Marketing Execution
Distribute the right content to the right customer no matter what platforms you use.
Industries Down-arrow-black
Agriculture
Art & Design
Automotive
Building Materials
Cannabis
Career
Construction
Counseling
Customer Service
Dental
Education
Energy & Environment
Engineering
Fashion & Beauty
Family Practice
Food & Beverage
Gaming
Health & Wellness
Healthcare
Higher Education
Home & Garden
Human Resources
Injury Law
Interior Design
IT & Security
Insurance
Legal
Manufacturing
Media & Entertainment
Medical Law
Nutrition
Parenting
Payments
Personal Finance
Real Estate
Relationships
Retail & Ecommerce
Religion & Spirituality
Restaurant and Bar
SaaS
Sales
Senior Services
Software
Sports & Fitness
Technology
Transportation & Logistics
Travel
Customers Down-arrow-black
Building-03
Enterprises
On-brand content that performs across all inbound, outbound and PR channels.
Share-07
Agencies
Workflow solutions that support content strategies and cost-effective creation for every client.
Tv-03
Media Publishers
Scalable content production that complements your existing editorial content.
File-06
Content Marketers
Insights, strategies and content to support your SEO, ABM, and social media marketing campaigns.
Volume-max
Brand Marketers
Subject Matter Experts that ensure your brand’s story is told with integrity and performance in mind.
Bar-chart-square-plus
Sales Teams
Everything you need to support 1:1 personalized outbound campaigns and get deals closed, quickly.
Resources Down-arrow-black
Book-open-01
Blog
Scripted has supported Content Marketers with insights for over a decade. Find everything you need here.
Lightbulb-05
Knowledge Base
Further resources on using Scripted and industry best practices as they evolve.
Speaker-02
Case Studies
Learn how Scripted customers have leveraged our platform to drive successful content marketing campaigns.
Briefcase-01
Writing Samples
See Scripted’s Subject Matter Expert writers and editors in action.
Backpack
Free Tools
Tons of AI-powered tools to make your job easier.
Pricing
Sign In GET STARTED
Menu button
x Close Menu Solutions Down-arrow-black
Book-closed
Content Intelligence
Custom analytics to map your content vs. industry and competitive trends and ensure your brand’s message meets the market.
Stars-02
Content Strategy
Daily ideas, recommendations and strategies to optimize performance across every marketing channel.
Life-buoy-01
Content Production
Create content at scale for every marketing channel in your brand’s unique voice.
Play-circle
Marketing Execution
Distribute the right content to the right customer no matter what platforms you use.
Industries Down-arrow-black
Agriculture
Art & Design
Automotive
Building Materials
Cannabis
Career
Construction
Counseling
Customer Service
Dental
Education
Energy & Environment
Engineering
Fashion & Beauty
Family Practice
Food & Beverage
Gaming
Health & Wellness
Healthcare
Higher Education
Home & Garden
Human Resources
Injury Law
Interior Design
IT & Security
Insurance
Legal
Manufacturing
Media & Entertainment
Medical Law
Nutrition
Parenting
Payments
Personal Finance
Real Estate
Relationships
Retail & Ecommerce
Religion & Spirituality
Restaurant and Bar
SaaS
Sales
Senior Services
Software
Sports & Fitness
Technology
Transportation & Logistics
Travel
Customers Down-arrow-black
Building-03
Enterprises
On-brand content that performs across all inbound, outbound and PR channels.
Share-07
Agencies
Workflow solutions that support content strategies and cost-effective creation for every client.
Tv-03
Media Publishers
Scalable content production that complements your existing editorial content.
File-06
Content Marketers
Insights, strategies and content to support your SEO, ABM, and social media marketing campaigns.
Volume-max
Brand Marketers
Subject Matter Experts that ensure your brand’s story is told with integrity and performance in mind.
Bar-chart-square-plus
Sales Teams
Everything you need to support 1:1 personalized outbound campaigns and get deals closed, quickly.
Resources Down-arrow-black
Book-open-01
Blog
Scripted has supported Content Marketers with insights for over a decade. Find everything you need here.
Lightbulb-05
Knowledge Base
Further resources on using Scripted and industry best practices as they evolve.
Speaker-02
Case Studies
Learn how Scripted customers have leveraged our platform to drive successful content marketing campaigns.
Briefcase-01
Writing Samples
See Scripted’s Subject Matter Expert writers and editors in action.
Backpack
Free Tools
Tons of AI-powered tools to make your job easier.
Plans Sign In Get Started
  1. Blog Home
  2. Industries
  3. Scripted Writers
  4. Easy Slack Sql Reporting (Scripted Behind The Scenes)

Easy Slack SQL Reporting (Scripted Behind the Scenes)

Easy Slack SQL Reporting (Scripted Behind the Scenes)

We use Slack at Scripted. We use it for the normal use - communication, but also use as our reporting hub. 

One of our favorite tools that helps us is SQLBot.co, a simple service that lets you query your reporting databases and push the results into Slack.

Let me show you with an example. One of the most important things we offer at Scripted to our customers is our pool of freelance writers. Better writers produce better writing and create happier customers. Makes sense.

We like to watch our stats daily (if not more often) at Scripted, and the easiest way to do that is to have reports automatically publish into Slack. Once there we can discuss the results and take action if necessary.

Here’s a query I wrote (yes, I still pretend to code) that tells us the number of new writer applicants we get by day:

SELECT
to_char(w.created_at AT TIME ZONE '-5', 'YYYY-MM-DD') as day,
COUNT(DISTINCT w.id) as writer_accts_created
FROM users w
WHERE w.user_type = 'writer'
GROUP BY to_char(w.created_at AT TIME ZONE '-5', 'YYYY-MM-DD')
ORDER BY to_char(w.created_at AT TIME ZONE '-5', 'YYYY-MM-DD') DESC
LIMIT 30

I use Postico as my SQL editor, and here’s what the results look like in its interface:

Qfdva6mdtzoykhfo4o1k
That's a lot of writers!

Great, so how do I now get this info into Slack?  I could use some complicated ETL process or expensive reporting tool, but why do that when a simpler tool exists.  Enter SQLBot.co. 

Getting results into Slack is as easy as setting up my DB connection, then copying and pasting my SQL into SQLBot and setting a few preferences.  Here's what the new report screen looks like filled out for this report.

Ixzylot4ojejpxbipgja
Creating a new report in SQLBot.co

6u9v4h7gqkyburyoayhe
Setting up Slack scheduling and command word

Now that I've set up the command to call the report in Slack, all I need to do is hop over and call it.  Here's what it looks like in Slack:

Rjlax2kyrfaozadid20w
Results!

So there you have it.  Simple, easy, fast Slack SQL reporting.  I can schedule this report to post daily or weekly, which makes things automatic, and means I won't forget to do it.  


Published by Scripted Writers on Friday, August 9, 2019 in Industries.

Sign Up For Your 30 Day Free Trial Today!

You agree to Scripted’s Terms of Use and Privacy Policy.
Already have an account? Login
Member & Writer Services
Membership Plans Become A Writer Help Center Customer Login Writer Login
Resources
Hire Writers Scripted Blog Glossary Competitors Blog Ideas Products
Legal
Privacy Terms of Use Writer Services Agreement GDPR Trust
Follow Us





Scripted-horizontal-light
©2011-2025
Hubspot chat