This API setup documents a webhook trigger that listens for GET requests at /mmq, corresponding to incoming request data for processing and subsequent steps involving database and API interactions.
/mmq endpoint. It serves as a trigger for further actions including querying a Postgres database, updating records, and responding accordingly. The workflow manages incoming request data, evaluates conditions, updates task statuses in third-party tools like ClickUp, and maintains synchronization with internal databases.
n8n-nodes-base.webhook)mmq. It responds with raw response mode, capturing incoming GET requests to initiate the process.
Parameters:
mmqGET, PATCHresponseNodetruen8n-nodes-base.stickyNote)n8n-nodes-base.postgres)SELECT * FROM get_account_task_stats({{ $json.account }}) JOIN accounts a ON a.account = {{ $json.account }} to retrieve current account task statistics.
Parameters:
executeQueryn8n-nodes-base.postgres)mv_future_datesmv_latest_due_datemv_latest_assignee_statusmv_latest_time_estimaten8n-nodes-base.postgres)executeQuery
Parameters:
Complex SQL query dynamically includes account value and filtering logic to retrieve current task statuses, assignments, tags, and other metadata.
n8n-nodes-base.merge)combine mode with position matching, primarily based on task_id.
n8n-nodes-base.if)task_id exists in the incoming data.
Parameters:
EXISTS on task_id in the previous data.n8n-nodes-base.clickUp)"on hold" based on task_id.n8n-nodes-base.set)Edit Fields12 and Edit Fields13)task_id, status, active, and due_date fields from previous data, aligning task metadata for later processing and responses.convertToFile)base64 binary data into a file format, likely for attaching or exporting.
respondToWebhook for play-pause)n8n-nodes-base.switch)action value (pause or play) received in message body, enabling different paths for handling task state changes.
Edit Fields9)task_id, status, and active fields accordingly, preparing for updates on task status.
respondToWebhook)Postgres13, Postgres14, Postgres17, etc.) perform complex operations:
mmq_log)status_history, due_date_history)disabled:true) for maintenance or future use.
clickUp)executionStatus":"success") complete the process cycle.
/mmq acting as the primary trigger for the entire orchestration.