diff --git a/backend/marketing_engine/insert_autonomous_task.php b/backend/marketing_engine/insert_autonomous_task.php new file mode 100644 index 00000000..cf3afae2 --- /dev/null +++ b/backend/marketing_engine/insert_autonomous_task.php @@ -0,0 +1,20 @@ +query("CREATE TABLE IF NOT EXISTS `marketing_tasks` ( + `id` INT AUTO_INCREMENT PRIMARY KEY, + `platform` VARCHAR(50) NOT NULL, + `type` VARCHAR(50) NOT NULL, + `status` VARCHAR(20) DEFAULT 'pending', + `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP +)"); + +// Insert the autonomous task +$stmt = $con->prepare("INSERT INTO marketing_tasks (platform, type, status) VALUES ('facebook', 'autonomous_scroll_and_reply', 'pending')"); +$stmt->execute(); + +echo "

Task inserted successfully!

"; +echo "

A new 'autonomous_scroll_and_reply' task is now pending for Facebook.

"; +echo "

Please restart the Android app now. It will immediately pick up this task and start scrolling!

";