DEV Community

Sospeter Mong'are
Sospeter Mong'are

Posted on

Getting started with Automations

Automation can sound like something reserved for software engineers, large companies, or people building complicated robots.

It isn't.

If you have ever created an email filter, scheduled a message, used a shortcut on your phone, or had one application automatically send information to another, you have already experienced automation.

At its simplest, automation means getting technology to perform a task automatically instead of doing it manually every time.

Add AI to the picture, and automation becomes even more powerful. Instead of simply following fixed instructions, an automated system can use AI to understand text, classify information, summarize documents, extract data, answer questions, and make decisions based on defined rules.

This guide is for beginners who want to understand automation and AI without getting overwhelmed by technical jargon.


First, what exactly is automation?

Imagine that every time someone fills out a contact form on your website, you manually:

  1. Open the form submission.
  2. Copy the person's name and email.
  3. Add them to a spreadsheet.
  4. Send them a welcome email.
  5. Notify your sales team.
  6. Create a follow-up task.

If this happens once, it is not a big deal.

If it happens 50 times a day, it becomes repetitive work.

Automation allows you to tell a computer:

"Whenever someone submits this form, do these things automatically."

That is the fundamental idea.

A simple automation can often be described as:

When X happens, do Y.

For example:

When a customer submits a form, add them to Google Sheets and send them a welcome email.

This introduces two concepts that you will see everywhere in automation:

  • Trigger - the event that starts the automation.
  • Action - what the automation does after the trigger happens.

For example:

Trigger: New customer submits a form
Action: Save customer details to a spreadsheet

You can then add more actions:

Trigger: New customer submits a form
Action 1: Save their details
Action 2: Send a welcome email
Action 3: Notify the sales team
Action 4: Create a follow-up task

This is called a workflow.


Why should you learn automation?

Most people don't spend their working day doing difficult tasks.

A surprising amount of time goes into things like:

  • Copying information between systems
  • Sending repetitive emails
  • Updating spreadsheets
  • Creating reports
  • Downloading and renaming files
  • Moving data from one application to another
  • Sending reminders
  • Checking whether something has happened
  • Creating the same documents repeatedly

These tasks may be necessary, but they don't always require a human.

Automation allows you to move from:

"I do this every day."

to:

"The system does this for me."

That can save time, reduce human error, and allow people to focus on work that actually requires judgment and creativity.


The basic building blocks of automation

Before learning any particular automation tool, understand these concepts.

1. Trigger

The trigger starts your workflow.

Examples:

  • A new email arrives
  • Someone submits a form
  • A payment is received
  • A new row is added to a spreadsheet
  • A customer creates an account
  • A file is uploaded
  • It becomes 8:00 AM
  • An API receives a request

Think of the trigger as:

"Something happened."


2. Action

An action is something the automation does after the trigger.

Examples:

  • Send an email
  • Create a database record
  • Send a WhatsApp notification
  • Add a row to Excel
  • Create a calendar event
  • Upload a file
  • Call an API
  • Generate a report

Think of it as:

"Because that happened, do this."


3. Condition

Sometimes you don't want an automation to run the same way every time.

You can introduce conditions.

For example:

When a new customer signs up, check their country.

If country = Kenya:

Send the Kenyan onboarding message.

If country = Uganda:

Send the Ugandan onboarding message.

Conditions allow your automation to make decisions based on information available to it.


4. Data

Automations are usually moving or transforming data.

For example, a form submission might contain:

Name: Jane Doe
Email: jane@example.com
Country: Kenya
Plan: Premium
Enter fullscreen mode Exit fullscreen mode

Your automation might take that information and:

  • Store it in a database
  • Send an email
  • Create a CRM contact
  • Notify a salesperson
  • Send a WhatsApp message

Understanding how data moves between systems is one of the most important skills in automation.


The major types of automation

There are many ways to categorize automation, but beginners can think about them in a few broad areas.

Workflow and integration automation

This is probably the easiest place to start.

You connect different applications so they can work together automatically.

For example:

New website lead -> Google Sheets -> CRM -> Email notification

Or:

Payment received -> Update database -> Send confirmation -> Notify business owner

Popular tools include:

  • Zapier
  • Make
  • Microsoft Power Automate
  • n8n

The important thing is not memorizing the tools.

Understand the pattern:

Trigger -> Process -> Action


Personal productivity automation

Automation doesn't have to be for a company.

You can automate your own digital life.

For example:

  • Automatically filter newsletters from your inbox
  • Rename downloaded files
  • Create reminders
  • Automatically organize documents
  • Use keyboard shortcuts for frequently typed text
  • Schedule recurring tasks
  • Automatically back up files

Tools such as Apple Shortcuts, Windows Task Scheduler, Alfred, and built-in email rules can help with this.

The best automation is often a small one that removes an annoying task you repeatedly perform.


Marketing and customer automation

Businesses use automation heavily for marketing and customer communication.

For example:

A customer signs up for your product.

Your system can automatically:

  1. Create the customer account.
  2. Send a welcome email.
  3. Add them to your CRM.
  4. Send onboarding information.
  5. Wait three days.
  6. Check whether they have used the product.
  7. Send another message if they haven't.
  8. Notify a sales representative if they become highly engaged.

Tools such as HubSpot, Mailchimp, ActiveCampaign, and other CRM and marketing platforms provide these capabilities.

This is particularly useful when you have hundreds or thousands of customers.


Robotic Process Automation

Sometimes a business doesn't have an API or easy integration between two systems.

This is where Robotic Process Automation (RPA) can be useful.

Instead of integrating directly with an application, an RPA bot can interact with the application's interface.

It can:

  • Open an application
  • Click buttons
  • Read information
  • Copy data
  • Fill in forms
  • Download files
  • Upload documents

Tools such as UiPath and Power Automate Desktop are commonly used for this type of automation.

However, don't automatically choose RPA just because it can imitate a human.

If a reliable API exists, an API integration is often more robust than automating clicks on a screen.


Where does AI fit into automation?

This is where things get interesting.

Traditional automation is usually good at following explicit instructions.

For example:

If payment status is "successful", send a confirmation message.

There isn't much ambiguity.

AI becomes useful when the system needs to understand something.

For example:

Read this customer email and determine whether the customer is asking for a refund, reporting a technical problem, or asking about pricing.

A traditional automation may struggle with this because emails can be written in thousands of different ways.

An AI model can interpret the text and classify it.

The automation can then continue based on the result.

For example:

New email arrives

↓

AI reads the email

↓

Classify the request

↓

If refund request -> send to finance

If technical issue -> create support ticket

If sales inquiry -> notify sales

This combination is often called AI automation.


Automation vs AI automation

It helps to understand the difference.

Traditional automation

The system follows predefined rules.

If X happens, do Y.

Example:

If an invoice is paid, send a receipt.

AI automation

AI handles a task that requires some level of interpretation.

Understand X, determine what it means, then do Y.

Example:

Read the customer's message, determine what they need, and route it to the correct department.

The two can work together.

In fact, some of the most useful systems combine both.

Automation provides the workflow.

AI provides intelligence within the workflow.


A simple AI automation example

Imagine a company receives 200 customer emails every day.

A basic automation could detect new emails.

AI can then analyze each email.

For example:

New email
   |
   v
AI reads email
   |
   v
Classify request
   |
   +---- Refund ------> Finance
   |
   +---- Technical ---> Support
   |
   +---- Sales -------> Sales team
   |
   +---- General -----> Customer service
Enter fullscreen mode Exit fullscreen mode

You could then automatically create tickets, notify employees, summarize the conversation, or draft a response.

The human can still remain in control.

AI does not necessarily have to replace the human.

It can simply remove the repetitive work around the human.


You don't need to start with AI

This is important for beginners.

Don't start by trying to build an autonomous AI agent that controls your entire business.

Start with automation.

Learn:

Trigger -> Data -> Condition -> Action

Then introduce AI when you encounter a problem that requires understanding or judgment.

For example:

"I can automatically collect these emails, but I need something to understand what each email is about."

That's a good place for AI.


No-code, low-code, or code?

There are three common ways to build automations.

No-code automation

You use a visual interface instead of writing code.

Examples include:

  • Zapier
  • Make
  • Microsoft Power Automate
  • IFTTT

You might build:

New Gmail email
       |
       v
Check attachment
       |
       v
Save to OneDrive
       |
       v
Send notification
Enter fullscreen mode Exit fullscreen mode

This is an excellent way for beginners to understand automation concepts.


Low-code automation

Low-code tools allow you to use visual workflows while adding expressions, scripts, or custom logic when necessary.

This gives you more flexibility without requiring you to build everything from scratch.

For example, you might use Power Automate to create the workflow but write an expression to transform a date or calculate a value.


Code-based automation

Once you need more control, you can build automations using code.

Python is an excellent language for automation because it has a huge ecosystem of libraries and is relatively easy to learn.

You can use code to:

  • Call APIs
  • Process files
  • Clean data
  • Interact with databases
  • Scrape websites where permitted
  • Send emails
  • Process spreadsheets
  • Integrate AI models
  • Build scheduled jobs
  • Create custom automation services

For example, a Python program could retrieve transactions from an API, analyze them, store the results in a database, and send a daily report.


Three common ways to automate with code

1. API integrations

APIs allow software applications to communicate with each other.

For example:

Your Python application
        |
        v
Payment API
        |
        v
Transaction data
        |
        v
Your database
Enter fullscreen mode Exit fullscreen mode

You can use Python libraries such as requests, json, and official SDKs to communicate with APIs.

If you understand APIs, you already have one of the most valuable foundations for building automations.


2. Browser automation

Sometimes a website does not provide an API that you can use.

Browser automation tools can control a browser programmatically.

Popular tools include:

  • Playwright
  • Selenium

For example, a permitted internal workflow could:

  1. Open a website.
  2. Log in.
  3. Search for a record.
  4. Extract information.
  5. Save the information.
  6. Generate a report.

However, browser automation is usually more fragile than using a proper API. Websites can change their interface and break your automation.

Always check a website's terms and access rules before automating it.


3. File and computer automation

You can also automate tasks directly on your computer.

Python can work with files, folders, CSV files, Excel files, and other data.

For example:

Downloaded files -> identify file type -> rename -> move to correct folder

Useful Python libraries include:

  • os
  • pathlib
  • shutil
  • pandas
  • openpyxl

You don't need complicated AI for this.

Sometimes a 30-line script can eliminate hours of repetitive work.


Scheduling your automation

An automation isn't very useful if you still have to remember to start it every morning.

You can schedule your code to run automatically.

Windows

Use Task Scheduler.

Linux and macOS

You can use cron or other scheduling tools.

Cloud

You can run automation using services such as:

  • GitHub Actions
  • AWS Lambda
  • Azure Functions
  • Google Cloud Functions
  • Cloud Run

You can also use workflow platforms that handle scheduling for you.

The important concept is:

Build it once, then let the system run it repeatedly.


How to choose your first automation

Don't start by asking:

"What cool automation can I build?"

Start with:

"What repetitive problem do I have?"

For one week, pay attention to the things you repeatedly do on your computer or phone.

Write them down.

For example:

Task Frequency Can it be automated?
Copy data from email to spreadsheet 10/day Yes
Send daily report 1/day Yes
Rename downloaded files 20/day Yes
Decide whether a customer deserves a refund 2/week Maybe, needs rules/human review
Design a new product Occasionally Not fully

Look for tasks that are:

  • Repetitive
  • Predictable
  • Rule-based
  • Time-consuming
  • Prone to human error

Those are excellent automation candidates.


Start with one small win

Don't try to automate your entire business.

Pick one small problem.

For example:

"Whenever I receive an invoice by email, save the attachment to a specific folder."

That's enough.

Once it works, improve it.

Maybe you add:

Extract invoice details -> save to database -> notify finance.

Then:

Use AI to extract the invoice number, supplier, amount, and due date.

Now you have progressed from a simple automation to an AI-powered workflow.


A practical learning path for beginners

If you are completely new, I would learn automation in this order.

Step 1: Learn the basic concepts

Understand:

  • Triggers
  • Actions
  • Conditions
  • Data
  • Workflows
  • APIs
  • Webhooks

Don't worry about advanced AI yet.

Step 2: Build a no-code automation

Use something like Power Automate, Make, Zapier, or n8n.

Build something simple.

For example:

Form submission -> spreadsheet -> email notification

Step 3: Learn APIs

Understand:

  • HTTP
  • GET
  • POST
  • PUT/PATCH
  • DELETE
  • JSON
  • Authentication
  • API keys
  • OAuth
  • Webhooks

This is where automation starts becoming much more powerful.

Step 4: Learn some Python

You don't need to become a Python expert immediately.

Learn enough to:

  • Read and write files
  • Work with JSON
  • Make HTTP requests
  • Work with APIs
  • Process data
  • Connect to databases
  • Handle errors

Step 5: Introduce AI

Learn how to use AI for tasks such as:

  • Classification
  • Summarization
  • Data extraction
  • Text generation
  • Document processing
  • Information retrieval

Then combine AI with your workflows.

Step 6: Learn how to deploy and monitor

A real automation needs more than just working code.

Learn about:

  • Logging
  • Error handling
  • Retries
  • Authentication
  • Secrets management
  • Monitoring
  • Scheduling
  • Notifications

This is what separates a small experiment from a reliable production automation.


A simple project you can build today

Here's a beginner-friendly project.

Automated expense tracker

Imagine you receive payment or expense notifications by email.

You could build:

New email
    |
    v
Extract transaction information
    |
    v
Check transaction type
    |
    v
Save to spreadsheet/database
    |
    v
Send confirmation
Enter fullscreen mode Exit fullscreen mode

Later, add AI:

New transaction message
        |
        v
AI extracts:
- Amount
- Merchant
- Category
- Date
        |
        v
Save structured data
        |
        v
Generate weekly summary
Enter fullscreen mode Exit fullscreen mode

Now you are learning automation, APIs, data processing, and AI in one project.


The most important lesson

Don't learn automation by memorizing tools.

Tools will change.

The concepts will remain.

Learn to look at a manual process and ask:

What starts this process?

What information is available?

What decisions need to be made?

What steps are repetitive?

What can a computer do automatically?

Where does the process require human judgment?

Could AI help with the parts that involve understanding unstructured information?

That way of thinking is more valuable than knowing how to use one particular automation platform.


Automation is not about removing humans

A common misconception is that automation means:

"Replace the human."

A better way to think about it is:

Automate the repetitive parts so humans can focus on the valuable parts.

A human might still approve a payment, review an important customer complaint, or make a business decision.

The automation simply handles the work around that decision.

For example:

Before automation:

Employee reads 100 emails -> identifies categories -> copies information -> creates tickets -> notifies teams.

After automation:

AI classifies emails -> automation creates tickets -> relevant teams are notified -> employee reviews the important cases.

The human is still involved, but their time is being used much more effectively.


Where you should start

If you are completely new, don't try to learn everything at once.

Start with this mental model:

Trigger -> Get data -> Process data -> Make a decision -> Take action

Then ask yourself where AI can help.

For example:

Trigger: Customer sends a message

Get data: Retrieve the customer's account information

Process: AI understands the message

Decision: Determine what the customer needs

Action: Create a ticket, send a response, or escalate to a human

Once you understand this pattern, you can build surprisingly sophisticated systems.

And you don't have to start with a complex AI agent.

Start with one annoying repetitive task.

Automate it.

Then make it better.

That's how you get started with automation.

Top comments (0)