added simple flow builder
This commit is contained in:
@@ -58,4 +58,42 @@ Stripe key:
|
|||||||
|
|
||||||
pk_test_51IWQUwH8oljXErmdg6L4MhsuB6tDdmumlHFfyNaopty2U27pmRcqMX1c868zn838lGQtU1eYV6bKRSQtMFWf36VT00aNsvnTOE
|
pk_test_51IWQUwH8oljXErmdg6L4MhsuB6tDdmumlHFfyNaopty2U27pmRcqMX1c868zn838lGQtU1eYV6bKRSQtMFWf36VT00aNsvnTOE
|
||||||
|
|
||||||
sk_test_51IWQUwH8oljXErmds28KftkL6o6jYIcPgYbBdfEmCPSuAlIh0fgoS4NADcCmsIZbdQ3p5nbAeCOcGkSmo38U9BIe00BdOenrqo
|
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`).
|
||||||
Reference in New Issue
Block a user