πŸ“š JAutomations Platform β€” Documentation (v1.0.0)

Β 

🧠 1. Introduction

What is JAutomations?

JAutomations Platform is a native Joomla automation engine that allows you to create event-driven workflows directly inside your website.

It enables you to:

  • Automate repetitive tasks
  • Connect Joomla with external systems
  • Execute multi-step workflows
  • Process jobs in the background

🎯 Core Concept

JAutomations is built around three main elements:

Trigger β†’ Workflow β†’ Actions

  • Trigger: An event (e.g., article created)
  • Workflow: A sequence of steps
  • Actions: Executions (Email / Webhook / Telegram)

πŸš€ Why JAutomations?

  • No need for external tools like Zapier or Make
  • Full control inside Joomla
  • High performance using Queue + CLI
  • Extensible architecture for future integrations

βš™οΈ 2. Requirements

Before installation, ensure the following:

  • Joomla 5.x or 6.x
  • PHP 8.1 or higher
  • Cron access on your server
  • SMTP configured (optional, for email actions)

πŸ“¦ 3. Installation Guide

Step 1: Install the Package

  1. Go to:
    Joomla Admin β†’ System β†’ Install β†’ Extensions
  2. Upload the package:
    pkg_jautomations_v1.0.0.zip
  3. Click Install

Step 2: Verify Installation

Make sure the following are available:

  • Component:
    πŸ‘‰ Components β†’ JAutomations
  • Plugin:
    πŸ‘‰ System - JAutomations

Step 3: Enable the Plugin

  • Go to Plugins
  • Search for: System - JAutomations
  • Ensure it is Enabled

Step 4: Setup Cron (Important ⚠️)

Add a cron job on your server:

Β 
* * * * * php /path-to-site/cli/jautomations_queue.php
Β 

πŸ’‘ Recommended: run every minute


🧩 4. First Automation (Quick Start)

🎯 Example: Send Telegram message when an article is published

Step 1: Create Automation

  • Go to:
    πŸ‘‰ JAutomations β†’ Automations
  • Click New

Step 2: Configure Trigger

  • Select Event:
    • Article Created
      or
    • Article Updated

Step 3: Add Step

  • Choose Action:
    πŸ‘‰ Telegram Message

Step 4: Configure Action

  • Bot Token
  • Chat ID
  • Message:

    Β 
    New article published: {{title}}
    Β 

Step 5: Save & Test

  • Save the automation
  • Create a new article
  • Verify the Telegram message is sent

πŸ” 5. Understanding Workflows

Multi-Step Example

An automation can include:

  1. Send Email
  2. Delay (5 minutes)
  3. Send Webhook

πŸ”„ Execution Flow

  • A job is added to the Queue
  • Processed by the CLI worker
  • Each step is logged

⏱️ 6. Queue & Background Processing

How it works

  • Each execution is stored in:
    πŸ‘‰ execution_queue
  • The CLI worker:
    • Reads jobs
    • Executes steps
    • Updates status

🧠 Why Queue matters

  • Prevents website slowdown
  • Handles heavy tasks efficiently
  • Enables retry mechanisms (future enhancement)

πŸ”Œ 7. Integrations

1. Webhook

  • Send HTTP requests to any API
  • Supports:
    • GET / POST
    • Headers
    • JSON payload

2. Email

  • Uses Joomla SMTP configuration
  • Supports dynamic content

3. Telegram

  • Requires:
    • Bot Token
    • Chat ID

πŸ“Š 8. Logs & Monitoring

Logs include:

  • Status (Success / Failed)
  • Step details
  • Error messages
  • Timestamp

πŸ“ˆ Dashboard

  • Total executions
  • Error count
  • Performance insights

πŸ› οΈ 9. Troubleshooting

❌ Queue not working

βœ” Check:

  • Cron job is running
  • CLI path is correct

❌ Telegram not sending

βœ” Verify:

  • Bot Token
  • Chat ID

❌ Email not sending

βœ” Check:

  • SMTP settings
  • Joomla mail configuration

❌ Automation not triggered

βœ” Verify:

  • Plugin is enabled
  • Correct trigger is selected

πŸ” 10. Security Notes

  • Do not expose API keys
  • Use HTTPS for webhooks
  • Ensure proper admin permissions

πŸ§ͺ 11. Best Practices

  • Avoid overly complex workflows initially
  • Use delays to reduce load
  • Monitor logs regularly
  • Test automations before production use

πŸ’Ž 12. Pro Features (Preview)

  • Advanced conditions
  • Priority queue
  • Advanced integrations
  • Enhanced analytics

πŸ“Œ 13. FAQ

Can I use JAutomations without Cron?

❌ No β€” queue processing requires CLI execution


Can I add custom integrations?

βœ… Yes β€” the system is extensible


Does it affect website performance?

❌ No β€” execution runs in the background


πŸš€ 14. Support

  • Documentation
  • Community support
  • (Pro) Priority support

πŸ’‘ Future Documentation Enhancements

πŸ”₯ Advanced Docs

  • Custom triggers
  • API usage
  • Developer guide

πŸŽ₯ Tutorials

  • Short video walkthroughs

πŸ“¦ Examples Library

  • Ready-made automation templates