beginner 7 min read
View as Markdown

Getting Started with Actions - Create Your First AI Action Template

Learn how to create, save, and use dynamic action templates in DatBot.AI. Master the action system to build powerful, reusable AI workflows.

Prerequisites

  • DatBot.AI account

Create Your First Action Template

Action templates are the building blocks of automation in DatBot.AI. They let you save, organize, and reuse your best actions with dynamic variables* that adapt to any situation.

*What are dynamic variables? Think of them like blanks in a Mad Libs game. You write an action once with blanks like ${customer name} or ${product}, and each time you use it, you fill in those blanks with different information. This turns one action into a reusable template that works for any customer, any product, or any situation!

Why Use Action Templates?

  • Save Time: Stop rewriting similar actions
  • Stay Organized: Keep actions in folders by project or purpose
  • Build Workflows: Chain actions together for complex automation
  • Share with Teams: Let colleagues use your proven actions

Step-by-Step Guide

1. Click “Add Action”

Start by clicking the “Add Action” button in the bottom right corner of your screen.

Add Action button location

2. Name Your Action

Give your action a clear, descriptive name. This helps you find it later and tells teammates what it does.

Good names:

  • “Weekly Report Generator”
  • “Customer Email Response”
  • “Code Review Assistant”

Avoid generic names like:

  • “Template 1”
  • “My Action”
  • “Test”

3. Choose a Workflow

Choosing a workflow for your action

Select or create a workflow folder to organize your action. Workflows help you:

  • Group related actions by project
  • Separate personal and team actions
  • Build organized automation sequences

Pro Tip

You’ll need to expand workflows to view actions inside them later. Keep your workflow structure simple and logical.

4. Write Your Initial Action

Start with a simple version of what you want. Don’t worry about making it perfect - the Magic Action feature will help enhance it.

Example starter action:

Write a weekly status report for my team

5. Use Magic Action ✨

Magic Action button

Click the “Magic Action” button to automatically enhance your action. This AI-powered feature:

  • Adds structure and clarity
  • Suggests dynamic variables
  • Improves output quality
  • Makes actions more reusable
Enhanced action after using Magic Action

Your enhanced action might look like:

Create a comprehensive weekly status report for ${TEAM_NAME} covering the week starting from ${START_DATE}.

Include the following sections:
1. Key Accomplishments
2. Work in Progress
3. Upcoming Priorities
4. Blockers and Risks
5. Team Member Highlights

(A real action will be much longer and more detailed, but you get the idea)

6. Choose Execution Mode

Execution mode selection

Select how your action should run:

Standard Mode

  • Runs immediately like a normal chat prompt
  • Best for quick tasks and simple queries
  • Fastest response time

Deep Dive Mode 🔍

  • Comprehensive research mode
  • Analyzes 100-200+ web sources
  • Takes 6-7 minutes to complete
  • Includes citations and source verification
  • Perfect for market research, competitive analysis, or in-depth reports

Quick Report Mode

  • Balanced research option
  • Reviews 20-100 web sources
  • Completes in under 5 minutes
  • Good for time-sensitive research needs

With Search Mode 🔎

  • Includes limited search result summaries
  • Model validates findings against search results
  • Ideal for fact-checking and current events

Agent Mode 🤖

  • Combines multiple capabilities in one execution
  • Access to web search, media generation, and workflow tools
  • Best for complex multi-step tasks that need various tools
  • Takes longer but handles sophisticated requests

7. Save and Use Your Action

Once saved, your action appears in the right-hand action panel, organized in your chosen workflow.

Action saved in workflow

Using Your Saved Actions

Single Action Execution

  1. Expand the workflow containing your action
  2. Click on the action name
  3. Fill in any dynamic variables in the popup window
  4. Submit to run the action
Dynamic variable input window

If your action has no variables, it will go straight to the chat input for immediate use.

Workflow Execution (Multiple Actions)

Run all actions in a workflow as an automated sequence:

  1. Click the play button (▶️) next to any workflow
  2. Fill in all variables for all actions at once
  3. Watch as each action runs automatically in sequence
  4. Get combined results from your entire workflow

This is perfect for:

  • Multi-step content creation
  • Comprehensive analysis workflows
  • Automated reporting sequences
  • Complex problem-solving chains

Best Practices

Organizing Actions

Create a workflow structure that makes sense for your work:

📁 Marketing
  └── Social Media
  └── Email Campaigns
  └── Blog Writing
📁 Development
  └── Code Reviews
  └── Documentation
  └── Bug Analysis
📁 Personal
  └── Learning
  └── Planning

Writing Effective Actions

  1. Use descriptive variable names: ${customerName} not ${name} - this is for your own benefit later when you forgot what you made.
  2. Set clear constraints: Length, tone, style preferences

Variable Best Practices

Good variable examples:

  • ${target audience}
  • ${DATE_RANGE}
  • ${Product Name}
  • ${maxWords} All of the above formats are allowed

Tips:

  • Be descriptive when using Magic Action - it will optimize for exactly what you tell it
  • USE MAGIC ACTION (seriously, it’s better than … the vast majority of us flesh creatures at writing actions)
  • Keep variable names consistent across related actions - the workflow execution will ‘remember’ and coalesce all of the same named variables across the workflow, so you’ll see something like (used 35 times) - save yourself typing!

Troubleshooting

Common Issues

Action not appearing in workflow:

  • Check you’re looking in the correct workflow
  • Expand the workflow (click the folder icon)
  • Scroll down (might be off-screen)
  • Refresh the page

Variables not working:

  • Use template literal syntax: ${variable}
  • Avoid spaces in variable names
  • Check for typos

Workflow stopping mid-execution:

  • Check for errors in variable references
  • Ensure all required variables are filled
  • Verify execution mode compatibility

Action right side panel isn’t showing up

  • Click the arrow in the top right (or the right burger menu on mobile) - it’s collapsed
  • Still not showing up? You might be logged out - go back to https://chat.datbot.ai and log in again

What’s Next?

Now that you’ve created your first action template:

Persona-Specific Guides

Looking for actions tailored to your role? Check out our specialized guides:

You’re Ready!

Start building your action library and watch your productivity soar. Remember, the best actions are the ones you refine over time.