From a5dbf762b61f591c31f15865db1cd98a48843e47 Mon Sep 17 00:00:00 2001 From: emmymayo Date: Wed, 12 Feb 2025 21:41:56 +0100 Subject: [PATCH] added simple flow builder --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3386a94..19b8ebc 100644 --- a/README.md +++ b/README.md @@ -58,4 +58,42 @@ Stripe key: pk_test_51IWQUwH8oljXErmdg6L4MhsuB6tDdmumlHFfyNaopty2U27pmRcqMX1c868zn838lGQtU1eYV6bKRSQtMFWf36VT00aNsvnTOE -sk_test_51IWQUwH8oljXErmds28KftkL6o6jYIcPgYbBdfEmCPSuAlIh0fgoS4NADcCmsIZbdQ3p5nbAeCOcGkSmo38U9BIe00BdOenrqo \ No newline at end of file +sk_test_51IWQUwH8oljXErmds28KftkL6o6jYIcPgYbBdfEmCPSuAlIh0fgoS4NADcCmsIZbdQ3p5nbAeCOcGkSmo38U9BIe00BdOenrqo + +18. ### Simple Flow Builder + +#### Core Features + +##### Flow Creation: + +* Users can create a flow with a name and description. +* Each flow consists of one or more tasks (each task should have a default input on creation). +* Tasks are executed sequentially (non-branching). + +##### Task Actions: + +* Each task performs a specific action with a single input. +* Supported action types: + + Send Test Mail: Sends an email to the provided address. + - Input: Email address (e.g., `test@example.com`). + + HTTP GET Request: Performs a GET request to the provided URL. + - Input: URL (e.g., `https://api.example.com/data`). + + MySQL Select: Executes a SELECT query on a specified table and ID. + - Input: Table name and ID (e.g., `users|123` [select from users where id = 123]). + + Drive Upload: Writes text to a file and uploads it to Google Drive. + - Input: Text content (e.g., `Hello, World!`). + - Hint: Create a google drive service account, enable drive api, generate credentials and utilize google sdk or api to upload. + +##### Triggers: + +* Webhook Trigger: + + A GET request with the action input in the query parameter called `payload`. + + Example: `localhost:3001?payload=test@example.com` (triggers the "Send Test Mail" action). +* Click Trigger: + + On clicking a button, show a popup to receive the action input. + + Example: Click a button, enter `test@example.com`, and trigger the "Send Test Mail" action. + +##### Execution: + +* When a flow is triggered, execute all tasks in sequence. +* Log the results of each task execution in a database table (`flow_logs`). \ No newline at end of file