Bird
Raised Fist0
AI for Everyoneknowledge~10 mins

Building simple automations with AI tools in AI for Everyone - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start an automation that sends a greeting message.

AI for Everyone
automation.start([1]="Hello, welcome!")
Drag options to blanks, or click blank then click option'
Amessage
Btext
Ccontent
Dgreet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text' instead of 'message' which is not recognized by the automation.
Using 'greet' which is not a valid key.
2fill in blank
medium

Complete the code to check if the AI tool is ready before running the automation.

AI for Everyone
if ai_tool.[1]():
    automation.run()
Drag options to blanks, or click blank then click option'
Astart
Blaunch
Cexecute
Dis_ready
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which initiates the tool rather than checking status.
Using 'execute' which runs a task but does not check readiness.
3fill in blank
hard

Fix the error in the code to correctly save the automation result.

AI for Everyone
result = automation.run()
automation.[1](result)
Drag options to blanks, or click blank then click option'
Asave
Bstore
Crecord
Dsave_result
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'store' which is not a defined method here.
Using 'save_result' which is not recognized by the tool.
4fill in blank
hard

Fill both blanks to create a filter that runs the automation only if the input text contains 'help'.

AI for Everyone
if '[1]' in input_text.[2]():
    automation.run()
Drag options to blanks, or click blank then click option'
Ahelp
Blower
Cupper
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of a text method for the second blank.
Using 'upper' which would require the keyword to be uppercase.
5fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each command to its length if the length is greater than 3.

AI for Everyone
command_lengths = {: {BLANK_2}} for [2] in commands if len({{BLANK_3}}) > 3
Drag options to blanks, or click blank then click option'
Acmd
Blen(cmd)
D{
Attempts:
3 left
💡 Hint
Common Mistakes
Not starting the comprehension with '{'.
Using different variable names inconsistently.

Practice

(1/5)
1. What is the main purpose of building simple automations with AI tools?
easy
A. To make AI tools more complicated
B. To create complex software programs
C. To replace all human jobs immediately
D. To save time by automating repetitive tasks

Solution

  1. Step 1: Understand the role of automations

    Automations help AI tools perform tasks automatically without manual effort.
  2. Step 2: Identify the benefit of automations

    They save time by handling repetitive work, making daily tasks easier.
  3. Final Answer:

    To save time by automating repetitive tasks -> Option D
  4. Quick Check:

    Automations save time = B [OK]
Hint: Automations reduce manual work to save time [OK]
Common Mistakes:
  • Thinking automations make AI more complex
  • Believing automations replace all jobs immediately
  • Confusing automations with software development
2. Which of the following is the correct way to describe an automation trigger?
easy
A. An event that starts the automation automatically
B. A report generated after automation runs
C. A tool that creates AI models
D. A manual step you perform every time

Solution

  1. Step 1: Define what a trigger is in automation

    A trigger is something that causes the automation to start without manual input.
  2. Step 2: Match the correct description

    An event that starts the automation automatically correctly states that a trigger is an event that starts automation automatically.
  3. Final Answer:

    An event that starts the automation automatically -> Option A
  4. Quick Check:

    Trigger = event starting automation = D [OK]
Hint: Triggers start automations automatically [OK]
Common Mistakes:
  • Confusing triggers with manual steps
  • Thinking triggers create AI models
  • Mixing triggers with reports
3. Consider this simple automation: When a new email arrives (trigger), the AI tool saves the attachment to a folder (action). What will happen if the trigger never occurs?
medium
A. The automation will not run
B. The AI tool will send an error message
C. The attachment will be saved anyway
D. The folder will be deleted

Solution

  1. Step 1: Understand the role of the trigger

    The trigger (new email arrival) must happen to start the automation.
  2. Step 2: Analyze what happens if the trigger never occurs

    If no new email arrives, the automation never starts, so no action happens.
  3. Final Answer:

    The automation will not run -> Option A
  4. Quick Check:

    No trigger means no run = C [OK]
Hint: No trigger means automation stays idle [OK]
Common Mistakes:
  • Assuming actions run without triggers
  • Expecting error messages automatically
  • Thinking unrelated folder changes happen
4. You created an automation that should send a welcome message when a new user signs up, but it never sends the message. What is the most likely error?
medium
A. The welcome message is too long
B. The AI tool does not support sending messages
C. The trigger for new user signup is missing or incorrect
D. The automation runs too fast

Solution

  1. Step 1: Check the trigger setup

    If the automation never starts, the trigger (new user signup) might be missing or set up wrongly.
  2. Step 2: Consider other options

    AI tools usually support sending messages; message length or speed rarely stops sending.
  3. Final Answer:

    The trigger for new user signup is missing or incorrect -> Option C
  4. Quick Check:

    Missing trigger stops automation = A [OK]
Hint: Check triggers first when automation fails [OK]
Common Mistakes:
  • Blaming AI tool capabilities without checking triggers
  • Thinking message length blocks sending
  • Assuming speed causes failure
5. You want to build an automation that sends a reminder email only if a task is not marked complete within 3 days. Which approach best fits this requirement?
hard
A. Use a trigger for task creation and an action to send email immediately
B. Use a trigger for task creation and add a delay of 3 days before checking completion
C. Send the reminder email every day regardless of task status
D. Manually check tasks and send emails yourself

Solution

  1. Step 1: Identify the need for delay and condition

    The reminder should only send after 3 days if the task is incomplete, so a delay and condition check are needed.
  2. Step 2: Match the approach that includes delay and condition

    Use a trigger for task creation and add a delay of 3 days before checking completion uses a trigger, waits 3 days, then checks if the task is complete before sending email.
  3. Final Answer:

    Use a trigger for task creation and add a delay of 3 days before checking completion -> Option B
  4. Quick Check:

    Delay + condition = correct automation = A [OK]
Hint: Add delay and condition to automate reminders correctly [OK]
Common Mistakes:
  • Sending email immediately without delay
  • Ignoring task completion status
  • Relying on manual checks