AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(flowise): add AI actions and output schemas (#16340)
Kishan Parmara4ae944affdf
diff --git a/bun.lock b/bun.lockindex 3aa33e2059c..38e0b4ba347 100644--- a/bun.lock+++ b/bun.lock@@ -230,7 +230,7 @@},"packages/pieces/community/0codekit": {"name": "@activepieces/piece-0codekit",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",@@ -310,7 +310,7 @@},"packages/pieces/community/add-event": {"name": "@activepieces/piece-add-event",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -396,7 +396,7 @@},"packages/pieces/community/aiprise": {"name": "@activepieces/piece-aiprise",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -491,7 +491,7 @@},"packages/pieces/community/algolia": {"name": "@activepieces/piece-algolia",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -631,7 +631,7 @@},"packages/pieces/community/amazon-textract": {"name": "@activepieces/piece-amazon-textract",- "version": "0.3.7",+ "version": "0.3.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -883,7 +883,7 @@},"packages/pieces/community/avian": {"name": "@activepieces/piece-avian",- "version": "0.0.7",+ "version": "0.0.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -911,7 +911,7 @@},"packages/pieces/community/aws-bedrock": {"name": "@activepieces/piece-aws-bedrock",- "version": "0.3.2",+ "version": "0.3.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -930,7 +930,7 @@},"packages/pieces/community/azure-ad": {"name": "@activepieces/piece-azure-ad",- "version": "0.3.1",+ "version": "0.3.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -973,7 +973,7 @@},"packages/pieces/community/azure-devops": {"name": "@activepieces/piece-azure-devops",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1109,7 +1109,7 @@},"packages/pieces/community/beebole": {"name": "@activepieces/piece-beebole",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1190,7 +1190,7 @@},"packages/pieces/community/bika": {"name": "@activepieces/piece-bika",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1244,7 +1244,7 @@},"packages/pieces/community/bland-ai": {"name": "@activepieces/piece-bland-ai",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1285,7 +1285,7 @@},"packages/pieces/community/bocha-search": {"name": "@activepieces/piece-bocha-search",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1404,7 +1404,7 @@},"packages/pieces/community/browserless": {"name": "@activepieces/piece-browserless",- "version": "0.2.0",+ "version": "0.2.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1431,7 +1431,7 @@},"packages/pieces/community/buffer": {"name": "@activepieces/piece-buffer",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1470,7 +1470,7 @@},"packages/pieces/community/buttondown": {"name": "@activepieces/piece-buttondown",- "version": "0.0.7",+ "version": "0.0.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1536,7 +1536,7 @@},"packages/pieces/community/canny": {"name": "@activepieces/piece-canny",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1549,7 +1549,7 @@},"packages/pieces/community/canva": {"name": "@activepieces/piece-canva",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1588,7 +1588,7 @@},"packages/pieces/community/carbone": {"name": "@activepieces/piece-carbone",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1681,7 +1681,7 @@},"packages/pieces/community/chargebee": {"name": "@activepieces/piece-chargebee",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1815,7 +1815,7 @@},"packages/pieces/community/chatwoot": {"name": "@activepieces/piece-chatwoot",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -1841,7 +1841,7 @@},"packages/pieces/community/chess-com": {"name": "@activepieces/piece-chess-com",- "version": "0.0.7",+ "version": "0.0.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2078,7 +2078,7 @@},"packages/pieces/community/coda": {"name": "@activepieces/piece-coda",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2121,7 +2121,7 @@},"packages/pieces/community/cohere": {"name": "@activepieces/piece-cohere",- "version": "0.1.2",+ "version": "0.1.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2179,7 +2179,7 @@},"packages/pieces/community/connectuc": {"name": "@activepieces/piece-connectuc",- "version": "0.0.12",+ "version": "0.0.13","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2248,7 +2248,7 @@},"packages/pieces/community/convertapi": {"name": "@activepieces/piece-convertapi",- "version": "0.0.2",+ "version": "0.0.3","dependencies": {"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",@@ -2300,7 +2300,7 @@},"packages/pieces/community/coralogix": {"name": "@activepieces/piece-coralogix",- "version": "0.2.2",+ "version": "0.2.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2327,7 +2327,7 @@},"packages/pieces/community/coupa": {"name": "@activepieces/piece-coupa",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2471,7 +2471,7 @@},"packages/pieces/community/dataforb2b": {"name": "@activepieces/piece-dataforb2b",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2553,7 +2553,7 @@},"packages/pieces/community/deftform": {"name": "@activepieces/piece-deftform",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2579,7 +2579,7 @@},"packages/pieces/community/descript": {"name": "@activepieces/piece-descript",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2770,7 +2770,7 @@},"packages/pieces/community/drip": {"name": "@activepieces/piece-drip",- "version": "0.6.0",+ "version": "0.6.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2811,7 +2811,7 @@},"packages/pieces/community/dub": {"name": "@activepieces/piece-dub",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2911,7 +2911,7 @@},"packages/pieces/community/editionguard": {"name": "@activepieces/piece-editionguard",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2924,7 +2924,7 @@},"packages/pieces/community/elastic-email": {"name": "@activepieces/piece-elastic-email",- "version": "0.3.1",+ "version": "0.3.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2953,7 +2953,7 @@},"packages/pieces/community/emailit": {"name": "@activepieces/piece-emailit",- "version": "0.1.2",+ "version": "0.1.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -2979,7 +2979,7 @@},"packages/pieces/community/enrichlayer": {"name": "@activepieces/piece-enrichlayer",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3018,7 +3018,7 @@},"packages/pieces/community/everhour": {"name": "@activepieces/piece-everhour",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3114,7 +3114,7 @@},"packages/pieces/community/fathom-analytics": {"name": "@activepieces/piece-fathom-analytics",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3141,7 +3141,7 @@},"packages/pieces/community/feedhive": {"name": "@activepieces/piece-feedhive",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3182,7 +3182,7 @@},"packages/pieces/community/filetopdf": {"name": "@activepieces/piece-filetopdf",- "version": "0.0.8",+ "version": "0.0.9","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3276,7 +3276,7 @@},"packages/pieces/community/floqer": {"name": "@activepieces/piece-floqer",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",@@ -3315,12 +3315,13 @@},"packages/pieces/community/flowise": {"name": "@activepieces/piece-flowise",- "version": "0.2.1",+ "version": "0.3.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*","@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",+ "form-data": "4.0.6",},"devDependencies": {"@types/is-url": "^1.2.32",@@ -3384,7 +3385,7 @@},"packages/pieces/community/formio": {"name": "@activepieces/piece-formio",- "version": "0.1.2",+ "version": "0.1.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3531,7 +3532,7 @@},"packages/pieces/community/freshservice": {"name": "@activepieces/piece-freshservice",- "version": "0.2.2",+ "version": "0.2.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3544,7 +3545,7 @@},"packages/pieces/community/frill": {"name": "@activepieces/piece-frill",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3638,7 +3639,7 @@},"packages/pieces/community/getresponse": {"name": "@activepieces/piece-getresponse",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3694,7 +3695,7 @@},"packages/pieces/community/gitea": {"name": "@activepieces/piece-gitea",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3752,7 +3753,7 @@},"packages/pieces/community/glide": {"name": "@activepieces/piece-glide",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3765,7 +3766,7 @@},"packages/pieces/community/gmail": {"name": "@activepieces/piece-gmail",- "version": "0.17.4",+ "version": "0.17.5","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3789,7 +3790,7 @@},"packages/pieces/community/goodmem": {"name": "@activepieces/piece-goodmem",- "version": "0.0.7",+ "version": "0.0.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3802,7 +3803,7 @@},"packages/pieces/community/google-bigquery": {"name": "@activepieces/piece-google-bigquery",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3816,7 +3817,7 @@},"packages/pieces/community/google-calendar": {"name": "@activepieces/piece-google-calendar",- "version": "0.12.2",+ "version": "0.12.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3846,7 +3847,7 @@},"packages/pieces/community/google-contacts": {"name": "@activepieces/piece-google-contacts",- "version": "0.5.3",+ "version": "0.5.4","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3863,7 +3864,7 @@},"packages/pieces/community/google-docs": {"name": "@activepieces/piece-google-docs",- "version": "0.5.3",+ "version": "0.5.4","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3881,7 +3882,7 @@},"packages/pieces/community/google-drive": {"name": "@activepieces/piece-google-drive",- "version": "0.11.2",+ "version": "0.11.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3902,7 +3903,7 @@},"packages/pieces/community/google-forms": {"name": "@activepieces/piece-google-forms",- "version": "0.7.1",+ "version": "0.7.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3967,7 +3968,7 @@},"packages/pieces/community/google-search-console": {"name": "@activepieces/piece-google-search-console",- "version": "0.4.0",+ "version": "0.4.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -3982,7 +3983,7 @@},"packages/pieces/community/google-sheets": {"name": "@activepieces/piece-google-sheets",- "version": "0.17.1",+ "version": "0.17.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -4005,7 +4006,7 @@},"packages/pieces/community/google-slides": {"name": "@activepieces/piece-google-slides",- "version": "0.4.1",+ "version": "0.4.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -4115,7 +4116,7 @@},"packages/pieces/community/granola": {"name": "@activepieces/piece-granola",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -4302,7 +4303,7 @@},"packages/pieces/community/heartbeat": {"name": "@activepieces/piece-heartbeat",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -4783,7 +4784,7 @@},"packages/pieces/community/jsm-operations": {"name": "@activepieces/piece-jsm-operations",- "version": "0.0.1",+ "version": "0.0.2","dependencies": {"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",@@ -5310,7 +5311,7 @@},"packages/pieces/community/localai": {"name": "@activepieces/piece-localai",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -5526,7 +5527,7 @@},"packages/pieces/community/mailgun": {"name": "@activepieces/piece-mailgun",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -5664,7 +5665,7 @@},"packages/pieces/community/mcp-client": {"name": "@activepieces/piece-mcp-client",- "version": "0.0.5",+ "version": "0.0.6","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -5819,7 +5820,7 @@},"packages/pieces/community/microsoft-copilot": {"name": "@activepieces/piece-microsoft-copilot",- "version": "0.2.2",+ "version": "0.2.3","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -5973,7 +5974,7 @@},"packages/pieces/community/microsoft-sql-server": {"name": "@activepieces/piece-microsoft-sql-server",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -6005,7 +6006,7 @@},"packages/pieces/community/microsoft-teams-bot": {"name": "@activepieces/piece-microsoft-teams-bot",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -6390,7 +6391,7 @@},"packages/pieces/community/ninety": {"name": "@activepieces/piece-ninety",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -6675,7 +6676,7 @@},"packages/pieces/community/opnform": {"name": "@activepieces/piece-opnform",- "version": "0.2.1",+ "version": "0.3.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -6743,7 +6744,7 @@},"packages/pieces/community/outseta": {"name": "@activepieces/piece-outseta",- "version": "0.3.1",+ "version": "0.3.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7235,7 +7236,7 @@},"packages/pieces/community/postiz": {"name": "@activepieces/piece-postiz",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7315,7 +7316,7 @@},"packages/pieces/community/produktly": {"name": "@activepieces/piece-produktly",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*",@@ -7325,7 +7326,7 @@},"packages/pieces/community/promotekit": {"name": "@activepieces/piece-promotekit",- "version": "0.4.0",+ "version": "0.4.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7524,7 +7525,7 @@},"packages/pieces/community/quickbooks-desktop-conductor": {"name": "@activepieces/piece-quickbooks-desktop-conductor",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7537,7 +7538,7 @@},"packages/pieces/community/quickbooks-sandbox": {"name": "@activepieces/piece-quickbooks-sandbox",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7621,7 +7622,7 @@},"packages/pieces/community/raindrop": {"name": "@activepieces/piece-raindrop",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7856,7 +7857,7 @@},"packages/pieces/community/ringcentral": {"name": "@activepieces/piece-ringcentral",- "version": "0.1.1",+ "version": "0.1.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -7897,7 +7898,7 @@},"packages/pieces/community/rounded-studio": {"name": "@activepieces/piece-rounded-studio",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8048,7 +8049,7 @@},"packages/pieces/community/savvycal": {"name": "@activepieces/piece-savvycal",- "version": "0.2.1",+ "version": "0.2.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8244,7 +8245,7 @@},"packages/pieces/community/senja": {"name": "@activepieces/piece-senja",- "version": "0.2.0",+ "version": "0.2.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8367,7 +8368,7 @@},"packages/pieces/community/sign-now": {"name": "@activepieces/piece-sign-now",- "version": "0.0.7",+ "version": "0.0.8","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8666,7 +8667,7 @@},"packages/pieces/community/softr": {"name": "@activepieces/piece-softr",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8681,7 +8682,7 @@},"packages/pieces/community/sofya": {"name": "@activepieces/piece-sofya",- "version": "0.1.0",+ "version": "0.1.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -8734,7 +8735,7 @@},"packages/pieces/community/square": {"name": "@activepieces/piece-square",- "version": "1.0.0",+ "version": "1.0.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9003,7 +9004,7 @@},"packages/pieces/community/taskade": {"name": "@activepieces/piece-taskade",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9258,7 +9259,7 @@},"packages/pieces/community/toggl-track": {"name": "@activepieces/piece-toggl-track",- "version": "0.2.0",+ "version": "0.2.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9272,7 +9273,7 @@},"packages/pieces/community/totalcms": {"name": "@activepieces/piece-totalcms",- "version": "1.0.0",+ "version": "1.0.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9415,7 +9416,7 @@},"packages/pieces/community/typefully": {"name": "@activepieces/piece-typefully",- "version": "0.3.1",+ "version": "0.3.2","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9428,7 +9429,7 @@},"packages/pieces/community/umami": {"name": "@activepieces/piece-umami",- "version": "0.3.0",+ "version": "0.3.1","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/flowise/package.json b/packages/pieces/community/flowise/package.jsonindex b3b4597a2db..65b9ffd751f 100644--- a/packages/pieces/community/flowise/package.json+++ b/packages/pieces/community/flowise/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-flowise",- "version": "0.2.1",+ "version": "0.3.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","devDependencies": {@@ -16,6 +16,7 @@"@activepieces/pieces-common": "workspace:*","@activepieces/pieces-framework": "workspace:*","@activepieces/core-piece-types": "workspace:*",- "@activepieces/core-utils": "workspace:*"+ "@activepieces/core-utils": "workspace:*",+ "form-data": "4.0.6"}}diff --git a/packages/pieces/community/flowise/src/index.ts b/packages/pieces/community/flowise/src/index.tsindex b0aca172d1f..224d3bbc371 100644--- a/packages/pieces/community/flowise/src/index.ts+++ b/packages/pieces/community/flowise/src/index.ts@@ -1,102 +1,26 @@import { createCustomApiCallAction } from '@activepieces/pieces-common';-import {- createAction,- createPiece,- PieceAuth,- Property,-} from '@activepieces/pieces-framework';-import { PieceCategory } from '@activepieces/pieces-framework';--const flowiseAuth = PieceAuth.CustomAuth({- description: 'Enter your Flowise URL and API Key',- props: {- base_url: Property.ShortText({- displayName: 'Base URL',- description: 'Enter the base URL',- required: true,- }),- access_token: PieceAuth.SecretText({- displayName: 'API Key',- description: 'Enter the API Key',- required: true,- }),- },- required: true,-});--// /api/v1/prediction/{your-chatflowid}-export const flowisePredict = createAction({- name: 'make_prediction',- classification: 'WRITE',- displayName: 'Make Prediction',- description: 'Run Flowise Predict',- audience: 'both',- aiMetadata: { description: 'Sends a question/input to a specific Flowise chatflow by its Chatflow ID and returns the prediction, optionally passing prior conversation history and runtime override config. Use to invoke a deployed Flowise AI workflow (chatbot, RAG, agent) for inference. Requires the target Chatflow ID; not idempotent since each call generates a fresh model response.', idempotent: false },- auth: flowiseAuth,- props: {- chatflow_id: Property.ShortText({- displayName: 'Chatflow ID',- description: 'Enter the Chatflow ID',- required: true,- }),- input: Property.ShortText({- displayName: 'Input/Question',- description: 'Enter the Input/Question',- required: true,- }),- history: Property.Json({- displayName: 'History',- description: 'Enter the History',- required: false,- }),- overrideConfig: Property.Json({- displayName: 'Override Config',- description: 'Enter the Override Config',- required: false,- }),- },- async run(ctx) {- const { base_url, access_token } = ctx.auth.props;- const chatflow_id = ctx.propsValue['chatflow_id'];- const input = ctx.propsValue['input'];- const url = `${base_url}/api/v1/prediction/${chatflow_id}`;- const headers = {- 'Content-Type': 'application/json',- Authorization: `Bearer ${access_token}`,- };- const body = {- question: input,- history: ctx.propsValue['history'],- overrideConfig: ctx.propsValue['overrideConfig'],- };- const response = await fetch(url, {- method: 'POST',- headers,- body: JSON.stringify(body),- });- const data = await response.json();- return data;- },-});+import { createPiece, PieceCategory } from '@activepieces/pieces-framework';+import { flowiseAuth } from './lib/auth';+import { flowiseClient } from './lib/common/client';+import { flowiseAiActions } from './lib/actions/ai';+import { makePredictionAction } from './lib/actions/make-prediction';export const flowise = createPiece({displayName: 'Flowise',description: 'No-Code AI workflow builder',-logoUrl: 'https://cdn.activepieces.com/pieces/flowise.png',auth: flowiseAuth,- minimumSupportedRelease: '0.30.0',+ minimumSupportedRelease: '0.88.2',categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],- authors: ["aasimsani","kishanprmr","MoShizzle","abuaboud"],+ authors: ['aasimsani', 'kishanprmr', 'MoShizzle', 'abuaboud'],actions: [- flowisePredict,+ makePredictionAction,+ ...flowiseAiActions,createCustomApiCallAction({- baseUrl: (auth) => (auth?.props.base_url ?? ''),+ baseUrl: (auth) => (auth ? flowiseClient.baseUrl({ auth }) : ''),auth: flowiseAuth,authMapping: async (auth) => ({- Authorization: `Bearer ${- auth.props.access_token- }`,+ Authorization: `Bearer ${auth.props.access_token}`,}),}),],diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-assistant.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-assistant.tsnew file mode 100644index 00000000000..fe2bea1088b--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-assistant.ts@@ -0,0 +1,64 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseAssistantOutputSchema } from '../../output-schemas';++export const createAssistantAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_assistant',+ outputSchema: flowiseAssistantOutputSchema,+ displayName: 'Create Assistant',+ description: 'Creates a new assistant.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Creates an assistant. CUSTOM assistants live only in Flowise and need just `details` with a `name`. OPENAI and AZURE assistants are also created on OpenAI and need the ID of a Flowise credential that holds the OpenAI API key. Each call creates another assistant.',+ idempotent: false,+ },+ props: {+ type: Property.StaticDropdown({+ displayName: 'Type',+ description:+ 'CUSTOM keeps the assistant in Flowise; OPENAI and AZURE also create it on OpenAI.',+ required: true,+ defaultValue: 'CUSTOM',+ options: {+ disabled: false,+ options: [+ { label: 'Custom', value: 'CUSTOM' },+ { label: 'OpenAI', value: 'OPENAI' },+ { label: 'Azure', value: 'AZURE' },+ ],+ },+ }),+ details: Property.Json({+ displayName: 'Details',+ description:+ 'Assistant settings as an object, e.g. `{"name":"Support bot","description":"...","model":"gpt-4o","instructions":"..."}`. `name` is required for CUSTOM.',+ required: true,+ }),+ credential: Property.ShortText({+ displayName: 'Credential ID',+ description:+ 'For OPENAI and AZURE: ID of the Flowise credential with the OpenAI API key. Leave empty for CUSTOM.',+ required: false,+ }),+ iconSrc: Property.ShortText({+ displayName: 'Icon URL',+ description: 'URL of the assistant icon.',+ required: false,+ }),+ },+ async run(context) {+ const { type, details, credential, iconSrc } = context.propsValue;+ return await flowiseApi.createAssistant({+ auth: context.auth,+ type,+ details,+ credential,+ iconSrc,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-attachments.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-attachments.tsnew file mode 100644index 00000000000..65e8148620d--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-attachments.ts@@ -0,0 +1,45 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseCreateAttachmentsOutputSchema } from '../../output-schemas';++export const createAttachmentsAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_attachments',+ outputSchema: flowiseCreateAttachmentsOutputSchema,+ displayName: 'Create Attachment',+ description: 'Uploads a file to a chat and returns its extracted content.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Uploads a file to one chat of a chatflow and returns its extracted text content, ready to pass to Make Prediction. The chatflow must have file uploads enabled.',+ idempotent: false,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({ required: true }),+ file: Property.File({+ displayName: 'File',+ description: 'The file to upload.',+ required: true,+ }),+ base64: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Return Base64',+ description: 'Return the file content as base64 instead of extracted text.',+ }),+ },+ async run(context) {+ const { chatflowId, chatId, file, base64 } = context.propsValue;+ return await flowiseApi.createAttachments({+ auth: context.auth,+ chatflowId,+ chatId,+ file: { filename: file.filename, data: file.data },+ base64,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-chatflow.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-chatflow.tsnew file mode 100644index 00000000000..8cf8049fca9--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-chatflow.ts@@ -0,0 +1,70 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseChatflowOutputSchema } from '../../output-schemas';++export const createChatflowAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_chatflow',+ outputSchema: flowiseChatflowOutputSchema,+ displayName: 'Create Chatflow',+ description: 'Creates a new chatflow.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Creates a new chatflow from a name, a type and a `flowData` graph. To copy an existing flow, pass the `flowData` returned by Get Chatflow. Each call creates another chatflow.',+ idempotent: false,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ description: 'Name of the chatflow.',+ required: true,+ }),+ flowData: Property.LongText({+ displayName: 'Flow Data',+ description:+ 'The flow graph as a JSON string, e.g. `{"nodes":[],"edges":[]}`. Copy it from Get Chatflow to clone a flow.',+ required: true,+ }),+ type: Property.StaticDropdown({+ displayName: 'Type',+ description: 'Kind of flow. Use CHATFLOW for a classic chatflow.',+ required: true,+ defaultValue: 'CHATFLOW',+ options: {+ disabled: false,+ options: [+ { label: 'Chatflow', value: 'CHATFLOW' },+ { label: 'Multi-agent', value: 'MULTIAGENT' },+ { label: 'Agentflow', value: 'AGENTFLOW' },+ ],+ },+ }),+ deployed: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Deployed',+ description: 'Whether the chatflow is deployed.',+ }),+ isPublic: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Public',+ description: 'Whether the chatflow is publicly accessible without an API key.',+ }),+ category: Property.ShortText({+ displayName: 'Category',+ description: 'Category tags, separated by `;`.',+ required: false,+ }),+ },+ async run(context) {+ const { name, flowData, type, deployed, isPublic, category } = context.propsValue;+ return await flowiseApi.createChatflow({+ auth: context.auth,+ fields: { name, flowData, type, deployed, isPublic, category },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-document-store.tsnew file mode 100644index 00000000000..99e84754160--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-document-store.ts@@ -0,0 +1,39 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseCreateDocumentStoreOutputSchema } from '../../output-schemas';++export const createDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_document_store',+ outputSchema: flowiseCreateDocumentStoreOutputSchema,+ displayName: 'Create Document Store',+ description: 'Creates an empty document store.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Creates an empty document store. Add documents to it with Upsert Document. Each call creates another store.',+ idempotent: false,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ description: 'Name of the document store.',+ required: true,+ }),+ description: Property.LongText({+ displayName: 'Description',+ description: 'What the store contains.',+ required: false,+ }),+ },+ async run(context) {+ const { name, description } = context.propsValue;+ return await flowiseApi.createDocumentStore({+ auth: context.auth,+ fields: { name, description },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-feedback.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-feedback.tsnew file mode 100644index 00000000000..7a934f342a6--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-feedback.ts@@ -0,0 +1,55 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseFeedbackOutputSchema } from '../../output-schemas';++export const createFeedbackAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_feedback',+ outputSchema: flowiseFeedbackOutputSchema,+ displayName: 'Create Feedback',+ description: 'Leaves feedback on a chat message.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Rates one bot message thumbs up or down, with an optional comment. The Chat ID and Message ID come from Make Prediction (`chatId`, `chatMessageId`) or List Chat Messages.',+ idempotent: false,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({ required: true }),+ messageId: Property.ShortText({+ displayName: 'Message ID',+ description:+ 'ID of the bot message to rate: `chatMessageId` from Make Prediction or `id` from List Chat Messages.',+ required: true,+ }),+ rating: Property.StaticDropdown({+ displayName: 'Rating',+ description: 'Thumbs up or thumbs down.',+ required: true,+ options: {+ disabled: false,+ options: [+ { label: 'Thumbs up', value: 'THUMBS_UP' },+ { label: 'Thumbs down', value: 'THUMBS_DOWN' },+ ],+ },+ }),+ content: Property.LongText({+ displayName: 'Comment',+ description: 'Optional comment explaining the rating.',+ required: false,+ }),+ },+ async run(context) {+ const { chatflowId, chatId, messageId, rating, content } = context.propsValue;+ return await flowiseApi.createFeedback({+ auth: context.auth,+ fields: { chatflowid: chatflowId, chatId, messageId, rating, content },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-lead.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-lead.tsnew file mode 100644index 00000000000..c38bb257c15--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-lead.ts@@ -0,0 +1,50 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseLeadOutputSchema } from '../../output-schemas';++export const createLeadAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_lead',+ outputSchema: flowiseLeadOutputSchema,+ displayName: 'Create Lead',+ description: 'Adds a lead to a chatflow.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Adds a lead (name, email, phone) to a chatflow, optionally linked to a chat session. Each call creates another lead.',+ idempotent: false,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({+ required: false,+ description: 'Chat session the lead came from. Flowise generates one when empty.',+ }),+ name: Property.ShortText({+ displayName: 'Name',+ description: 'Name of the lead.',+ required: false,+ }),+ email: Property.ShortText({+ displayName: 'Email',+ description: 'Email of the lead.',+ required: false,+ }),+ phone: Property.ShortText({+ displayName: 'Phone',+ description: 'Phone number of the lead.',+ required: false,+ }),+ },+ async run(context) {+ const { chatflowId, chatId, name, email, phone } = context.propsValue;+ return await flowiseApi.createLead({+ auth: context.auth,+ fields: { chatflowid: chatflowId, chatId, name, email, phone },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-tool.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-tool.tsnew file mode 100644index 00000000000..ef486b86f86--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-tool.ts@@ -0,0 +1,62 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseToolOutputSchema } from '../../output-schemas';++export const createToolAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_tool',+ outputSchema: flowiseToolOutputSchema,+ displayName: 'Create Tool',+ description: 'Creates a custom tool that flows can call.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Creates a custom tool: a name and description the LLM sees, an optional input schema and the JavaScript function it runs. Each call creates another tool.',+ idempotent: false,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ description: 'Tool name the LLM sees, in snake_case, e.g. `get_weather`.',+ required: true,+ }),+ description: Property.LongText({+ displayName: 'Description',+ description: 'What the tool does and when the LLM should call it.',+ required: true,+ }),+ color: Property.ShortText({+ displayName: 'Color',+ description:+ 'Background color of the tool card, e.g. `linear-gradient(rgb(0,0,0), rgb(0,0,0))` or `#4CAF50`.',+ required: true,+ }),+ schema: Property.LongText({+ displayName: 'Input Schema',+ description:+ 'JSON string array of input fields, e.g. `[{"id":0,"property":"city","type":"string","description":"City name","required":true}]`.',+ required: false,+ }),+ func: Property.LongText({+ displayName: 'Function',+ description:+ 'JavaScript the tool runs. Inputs are available as `$<property>`, e.g. `$city`. Must return a string.',+ required: false,+ }),+ iconSrc: Property.ShortText({+ displayName: 'Icon URL',+ description: 'URL of the tool icon.',+ required: false,+ }),+ },+ async run(context) {+ const { name, description, color, schema, func, iconSrc } = context.propsValue;+ return await flowiseApi.createTool({+ auth: context.auth,+ fields: { name, description, color, schema, func, iconSrc },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/create-variable.ts b/packages/pieces/community/flowise/src/lib/actions/ai/create-variable.tsnew file mode 100644index 00000000000..2d9d176ab87--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/create-variable.ts@@ -0,0 +1,53 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseVariableOutputSchema } from '../../output-schemas';++export const createVariableAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_create_variable',+ outputSchema: flowiseVariableOutputSchema,+ displayName: 'Create Variable',+ description: 'Creates a workspace variable.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Creates a workspace variable that flows read as `$vars.<name>`. A static variable stores the value; a runtime variable reads the environment variable of the same name. Each call creates another variable.',+ idempotent: false,+ },+ props: {+ name: Property.ShortText({+ displayName: 'Name',+ description: 'Variable name.',+ required: true,+ }),+ value: Property.LongText({+ displayName: 'Value',+ description:+ 'Value of the variable. Required for runtime variables too, where it is ignored.',+ required: true,+ }),+ type: Property.StaticDropdown({+ displayName: 'Type',+ description:+ 'Static stores the value; runtime reads the server environment variable. Defaults to static.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Static', value: 'static' },+ { label: 'Runtime', value: 'runtime' },+ ],+ },+ }),+ },+ async run(context) {+ const { name, value, type } = context.propsValue;+ return await flowiseApi.createVariable({+ auth: context.auth,+ fields: { name, value, type: type ?? 'static' },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-assistant.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-assistant.tsnew file mode 100644index 00000000000..a9c2af6e2bc--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-assistant.ts@@ -0,0 +1,36 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteResultOutputSchema } from '../../output-schemas';++export const deleteAssistantAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_assistant',+ outputSchema: flowiseDeleteResultOutputSchema,+ displayName: 'Delete Assistant',+ description: 'Permanently deletes an assistant.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes an assistant from Flowise. With Delete on OpenAI Too, an OPENAI or AZURE assistant is also deleted on OpenAI. This cannot be undone.',+ idempotent: false,+ },+ props: {+ assistantId: Property.ShortText({+ displayName: 'Assistant ID',+ description: 'ID of the assistant, from List Assistants.',+ required: true,+ }),+ isDeleteBoth: Property.Checkbox({+ displayName: 'Delete on OpenAI Too',+ description: 'For OPENAI and AZURE assistants: also delete the assistant on OpenAI.',+ required: false,+ }),+ },+ async run(context) {+ const { assistantId, isDeleteBoth } = context.propsValue;+ return await flowiseApi.deleteAssistant({ auth: context.auth, assistantId, isDeleteBoth });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-chat-messages.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-chat-messages.tsnew file mode 100644index 00000000000..2e571a7ed4b--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-chat-messages.ts@@ -0,0 +1,69 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteResultOutputSchema } from '../../output-schemas';++export const deleteChatMessagesAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_chat_messages',+ outputSchema: flowiseDeleteResultOutputSchema,+ displayName: 'Delete Chat Messages',+ description: 'Deletes the chat messages of a chatflow that match the filters.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Deletes chat messages of one chatflow. Always pass a Chat ID to delete a single conversation: with no filters it deletes every message of the chatflow. Hard Delete also clears the chat memory.',+ idempotent: false,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({+ required: false,+ description: 'Only delete messages from this chat session.',+ }),+ sessionId: Property.ShortText({+ displayName: 'Session ID',+ description: 'Only delete messages with this memory session ID.',+ required: false,+ }),+ chatType: Property.StaticDropdown({+ displayName: 'Chat Type',+ description:+ 'INTERNAL = chats from the Flowise UI, EXTERNAL = chats through the API or embed.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Internal', value: 'INTERNAL' },+ { label: 'External', value: 'EXTERNAL' },+ ],+ },+ }),+ startDate: flowiseAiProps.startDate({ required: false }),+ endDate: flowiseAiProps.endDate({ required: false }),+ hardDelete: Property.Checkbox({+ displayName: 'Hard Delete',+ description: 'Also delete the messages from the memory node of the flow.',+ required: false,+ }),+ },+ async run(context) {+ const { chatflowId, chatId, sessionId, chatType, startDate, endDate, hardDelete } =+ context.propsValue;+ return await flowiseApi.deleteChatMessages({+ auth: context.auth,+ chatflowId,+ filters: {+ chatId,+ sessionId,+ chatType,+ startDate,+ endDate,+ hardDelete: hardDelete ? 'true' : undefined,+ },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-chatflow.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-chatflow.tsnew file mode 100644index 00000000000..e3aafcc6205--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-chatflow.ts@@ -0,0 +1,29 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteResultOutputSchema } from '../../output-schemas';++export const deleteChatflowAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_chatflow',+ outputSchema: flowiseDeleteResultOutputSchema,+ displayName: 'Delete Chatflow',+ description: 'Permanently deletes a chatflow.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description: 'Permanently deletes a chatflow by ID. This cannot be undone.',+ idempotent: false,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ },+ async run(context) {+ return await flowiseApi.deleteChatflow({+ auth: context.auth,+ chatflowId: context.propsValue.chatflowId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-chunk.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-chunk.tsnew file mode 100644index 00000000000..63c57f0a2c7--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-chunk.ts@@ -0,0 +1,34 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDocumentChunksOutputSchema } from '../../output-schemas';++export const deleteDocumentChunkAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_document_chunk',+ outputSchema: flowiseDocumentChunksOutputSchema,+ displayName: 'Delete Document Chunk',+ description: 'Permanently deletes one chunk from a document loader.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes one chunk (from Get Document Chunks) from a document loader. This cannot be undone.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ loaderId: flowiseAiProps.loaderId({ required: true }),+ chunkId: Property.ShortText({+ displayName: 'Chunk ID',+ description: 'ID of the chunk, from Get Document Chunks.',+ required: true,+ }),+ },+ async run(context) {+ const { storeId, loaderId, chunkId } = context.propsValue;+ return await flowiseApi.deleteDocumentChunk({ auth: context.auth, storeId, loaderId, chunkId });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-loader.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-loader.tsnew file mode 100644index 00000000000..b012c6e7858--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-loader.ts@@ -0,0 +1,29 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseUpdateDocumentStoreOutputSchema } from '../../output-schemas';++export const deleteDocumentLoaderAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_document_loader',+ outputSchema: flowiseUpdateDocumentStoreOutputSchema,+ displayName: 'Delete Document Loader',+ description: 'Permanently deletes a document loader and its chunks.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes one document loader and all its chunks from a document store. This cannot be undone.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ loaderId: flowiseAiProps.loaderId({ required: true }),+ },+ async run(context) {+ const { storeId, loaderId } = context.propsValue;+ return await flowiseApi.deleteDocumentLoader({ auth: context.auth, storeId, loaderId });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-store.tsnew file mode 100644index 00000000000..996afa071b3--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-document-store.ts@@ -0,0 +1,30 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteDocumentStoreOutputSchema } from '../../output-schemas';++export const deleteDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_document_store',+ outputSchema: flowiseDeleteDocumentStoreOutputSchema,+ displayName: 'Delete Document Store',+ description: 'Permanently deletes a document store.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes a document store with its loaders and chunks. This cannot be undone.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ },+ async run(context) {+ return await flowiseApi.deleteDocumentStore({+ auth: context.auth,+ storeId: context.propsValue.storeId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-tool.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-tool.tsnew file mode 100644index 00000000000..7fb14833fdf--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-tool.ts@@ -0,0 +1,30 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteResultOutputSchema } from '../../output-schemas';++export const deleteToolAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_tool',+ outputSchema: flowiseDeleteResultOutputSchema,+ displayName: 'Delete Tool',+ description: 'Permanently deletes a custom tool.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes a custom tool by ID. Flows that use it stop working. This cannot be undone.',+ idempotent: false,+ },+ props: {+ toolId: Property.ShortText({+ displayName: 'Tool ID',+ description: 'ID of the tool, from List Tools.',+ required: true,+ }),+ },+ async run(context) {+ return await flowiseApi.deleteTool({ auth: context.auth, toolId: context.propsValue.toolId });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-variable.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-variable.tsnew file mode 100644index 00000000000..f3b09e4b2e4--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-variable.ts@@ -0,0 +1,33 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseDeleteResultOutputSchema } from '../../output-schemas';++export const deleteVariableAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_variable',+ outputSchema: flowiseDeleteResultOutputSchema,+ displayName: 'Delete Variable',+ description: 'Permanently deletes a workspace variable.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Permanently deletes a workspace variable by ID. Flows that read it get an empty value. This cannot be undone.',+ idempotent: false,+ },+ props: {+ variableId: Property.ShortText({+ displayName: 'Variable ID',+ description: 'ID of the variable, from List Variables.',+ required: true,+ }),+ },+ async run(context) {+ return await flowiseApi.deleteVariable({+ auth: context.auth,+ variableId: context.propsValue.variableId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/delete-vector-store-data.ts b/packages/pieces/community/flowise/src/lib/actions/ai/delete-vector-store-data.tsnew file mode 100644index 00000000000..b2ed6f9bb41--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/delete-vector-store-data.ts@@ -0,0 +1,28 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';++export const deleteVectorStoreDataAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_delete_vector_store_data',+ displayName: 'Delete Vector Store Data',+ description: 'Deletes the data a document store upserted into its vector store.',+ audience: 'ai',+ classification: 'DESTRUCTIVE',+ aiMetadata: {+ description:+ 'Deletes the vectors a document store upserted. Only data upserted with a record manager configured is removed; other data stays. The store and its chunks are kept.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ },+ async run(context) {+ return await flowiseApi.deleteVectorStoreData({+ auth: context.auth,+ storeId: context.propsValue.storeId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/get-assistant.ts b/packages/pieces/community/flowise/src/lib/actions/ai/get-assistant.tsnew file mode 100644index 00000000000..4864c30cc62--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/get-assistant.ts@@ -0,0 +1,33 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseAssistantOutputSchema } from '../../output-schemas';++export const getAssistantAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_get_assistant',+ outputSchema: flowiseAssistantOutputSchema,+ displayName: 'Get Assistant',+ description: 'Gets one assistant by ID.',+ audience: 'ai',+ classification: 'READ',+ aiMetadata: {+ description:+ 'Gets one assistant by ID. Its `details` field is a JSON string with the name, model and instructions.',+ idempotent: true,+ },+ props: {+ assistantId: Property.ShortText({+ displayName: 'Assistant ID',+ description: 'ID of the assistant, from List Assistants.',+ required: true,+ }),+ },+ async run(context) {+ return await flowiseApi.getAssistant({+ auth: context.auth,+ assistantId: context.propsValue.assistantId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/get-chatflow.ts b/packages/pieces/community/flowise/src/lib/actions/ai/get-chatflow.tsnew file mode 100644index 00000000000..7a548d17b37--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/get-chatflow.ts@@ -0,0 +1,30 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseChatflowOutputSchema } from '../../output-schemas';++export const getChatflowAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_get_chatflow',+ outputSchema: flowiseChatflowOutputSchema,+ displayName: 'Get Chatflow',+ description: 'Gets one chatflow by ID.',+ audience: 'ai',+ classification: 'READ',+ aiMetadata: {+ description:+ 'Gets one chatflow by ID, including its `flowData` graph (nodes and edges as a JSON string) and its chatbot and API config. Use the `flowData` with Create Chatflow to copy a flow.',+ idempotent: true,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ },+ async run(context) {+ return await flowiseApi.getChatflow({+ auth: context.auth,+ chatflowId: context.propsValue.chatflowId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/get-document-chunks.ts b/packages/pieces/community/flowise/src/lib/actions/ai/get-document-chunks.tsnew file mode 100644index 00000000000..f1daf708cbe--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/get-document-chunks.ts@@ -0,0 +1,39 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDocumentChunksOutputSchema } from '../../output-schemas';++export const getDocumentChunksAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_get_document_chunks',+ outputSchema: flowiseDocumentChunksOutputSchema,+ displayName: 'Get Document Chunks',+ description: 'Gets one page of the chunks of a document loader.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Gets one page of the text chunks a document loader produced, with the total `count` and `currentPage`. Returns each chunk `id` for Update and Delete Document Chunk.',+ idempotent: true,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ loaderId: flowiseAiProps.loaderId({ required: true }),+ pageNo: Property.Number({+ displayName: 'Page',+ description: 'Page number, starting at 1. Defaults to 1.',+ required: false,+ }),+ },+ async run(context) {+ const { storeId, loaderId, pageNo } = context.propsValue;+ return await flowiseApi.getDocumentChunks({+ auth: context.auth,+ storeId,+ loaderId,+ pageNo: pageNo ?? 1,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/get-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/get-document-store.tsnew file mode 100644index 00000000000..a095f22da88--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/get-document-store.ts@@ -0,0 +1,30 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDocumentStoreOutputSchema } from '../../output-schemas';++export const getDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_get_document_store',+ outputSchema: flowiseDocumentStoreOutputSchema,+ displayName: 'Get Document Store',+ description: 'Gets one document store by ID.',+ audience: 'ai',+ classification: 'READ',+ aiMetadata: {+ description:+ 'Gets one document store by ID, including its loaders (each with the Loader ID that the chunk and loader actions take), status and vector store, embedding and record manager config.',+ idempotent: true,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ },+ async run(context) {+ return await flowiseApi.getDocumentStore({+ auth: context.auth,+ storeId: context.propsValue.storeId,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/get-tool.ts b/packages/pieces/community/flowise/src/lib/actions/ai/get-tool.tsnew file mode 100644index 00000000000..36b30d5c220--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/get-tool.ts@@ -0,0 +1,29 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseToolOutputSchema } from '../../output-schemas';++export const getToolAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_get_tool',+ outputSchema: flowiseToolOutputSchema,+ displayName: 'Get Tool',+ description: 'Gets one custom tool by ID.',+ audience: 'ai',+ classification: 'READ',+ aiMetadata: {+ description: 'Gets one custom tool by ID, including its input schema and JavaScript function.',+ idempotent: true,+ },+ props: {+ toolId: Property.ShortText({+ displayName: 'Tool ID',+ description: 'ID of the tool, from List Tools.',+ required: true,+ }),+ },+ async run(context) {+ return await flowiseApi.getTool({ auth: context.auth, toolId: context.propsValue.toolId });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/index.ts b/packages/pieces/community/flowise/src/lib/actions/ai/index.tsnew file mode 100644index 00000000000..a2f54409284--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/index.ts@@ -0,0 +1,83 @@+import { createAssistantAction } from './create-assistant';+import { createAttachmentsAction } from './create-attachments';+import { createChatflowAction } from './create-chatflow';+import { createDocumentStoreAction } from './create-document-store';+import { createFeedbackAction } from './create-feedback';+import { createLeadAction } from './create-lead';+import { createToolAction } from './create-tool';+import { createVariableAction } from './create-variable';+import { deleteAssistantAction } from './delete-assistant';+import { deleteChatMessagesAction } from './delete-chat-messages';+import { deleteChatflowAction } from './delete-chatflow';+import { deleteDocumentChunkAction } from './delete-document-chunk';+import { deleteDocumentLoaderAction } from './delete-document-loader';+import { deleteDocumentStoreAction } from './delete-document-store';+import { deleteToolAction } from './delete-tool';+import { deleteVariableAction } from './delete-variable';+import { deleteVectorStoreDataAction } from './delete-vector-store-data';+import { getAssistantAction } from './get-assistant';+import { getChatflowAction } from './get-chatflow';+import { getDocumentChunksAction } from './get-document-chunks';+import { getDocumentStoreAction } from './get-document-store';+import { getToolAction } from './get-tool';+import { listAssistantsAction } from './list-assistants';+import { listChatMessagesAction } from './list-chat-messages';+import { listChatflowsAction } from './list-chatflows';+import { listDocumentStoresAction } from './list-document-stores';+import { listFeedbackAction } from './list-feedback';+import { listLeadsAction } from './list-leads';+import { listToolsAction } from './list-tools';+import { listVariablesAction } from './list-variables';+import { queryDocumentStoreAction } from './query-document-store';+import { refreshDocumentStoreAction } from './refresh-document-store';+import { updateAssistantAction } from './update-assistant';+import { updateChatflowAction } from './update-chatflow';+import { updateDocumentChunkAction } from './update-document-chunk';+import { updateDocumentStoreAction } from './update-document-store';+import { updateFeedbackAction } from './update-feedback';+import { updateToolAction } from './update-tool';+import { updateVariableAction } from './update-variable';+import { upsertDocumentAction } from './upsert-document';++export const flowiseAiActions = [+ createAssistantAction,+ createAttachmentsAction,+ createChatflowAction,+ createDocumentStoreAction,+ createFeedbackAction,+ createLeadAction,+ createToolAction,+ createVariableAction,+ deleteAssistantAction,+ deleteChatMessagesAction,+ deleteChatflowAction,+ deleteDocumentChunkAction,+ deleteDocumentLoaderAction,+ deleteDocumentStoreAction,+ deleteToolAction,+ deleteVariableAction,+ deleteVectorStoreDataAction,+ getAssistantAction,+ getChatflowAction,+ getDocumentChunksAction,+ getDocumentStoreAction,+ getToolAction,+ listAssistantsAction,+ listChatMessagesAction,+ listChatflowsAction,+ listDocumentStoresAction,+ listFeedbackAction,+ listLeadsAction,+ listToolsAction,+ listVariablesAction,+ queryDocumentStoreAction,+ refreshDocumentStoreAction,+ updateAssistantAction,+ updateChatflowAction,+ updateDocumentChunkAction,+ updateDocumentStoreAction,+ updateFeedbackAction,+ updateToolAction,+ updateVariableAction,+ upsertDocumentAction,+];diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-assistants.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-assistants.tsnew file mode 100644index 00000000000..fcc9b041dfe--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-assistants.ts@@ -0,0 +1,42 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseListAssistantsOutputSchema } from '../../output-schemas';++export const listAssistantsAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_assistants',+ outputSchema: flowiseListAssistantsOutputSchema,+ displayName: 'List Assistants',+ description: 'Lists the assistants in the workspace.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists the assistants in the workspace, optionally only one type. Each `details` field is a JSON string with the name, model and instructions. Returns the assistant ids that Get, Update and Delete Assistant take.',+ idempotent: true,+ },+ props: {+ type: Property.StaticDropdown({+ displayName: 'Type',+ description: 'Only list assistants of this type.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Custom', value: 'CUSTOM' },+ { label: 'OpenAI', value: 'OPENAI' },+ { label: 'Azure', value: 'AZURE' },+ ],+ },+ }),+ },+ async run(context) {+ const assistants = await flowiseApi.listAssistants({+ auth: context.auth,+ type: context.propsValue.type,+ });+ return { assistants, count: assistants.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-chat-messages.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-chat-messages.tsnew file mode 100644index 00000000000..79822b3e1c3--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-chat-messages.ts@@ -0,0 +1,91 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseListChatMessagesOutputSchema } from '../../output-schemas';++export const listChatMessagesAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_chat_messages',+ outputSchema: flowiseListChatMessagesOutputSchema,+ displayName: 'List Chat Messages',+ description: 'Lists the chat messages of a chatflow, with optional filters.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists the user and bot messages of one chatflow. Filter by chat, session, chat type, date range or feedback type. Returns each message `id` (the `messageId` for Create Feedback) and its `chatId`.',+ idempotent: true,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({+ required: false,+ description: 'Only messages from this chat session.',+ }),+ sessionId: Property.ShortText({+ displayName: 'Session ID',+ description: 'Only messages with this memory session ID.',+ required: false,+ }),+ chatType: Property.StaticDropdown({+ displayName: 'Chat Type',+ description:+ 'INTERNAL = chats from the Flowise UI, EXTERNAL = chats through the API or embed.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Internal', value: 'INTERNAL' },+ { label: 'External', value: 'EXTERNAL' },+ ],+ },+ }),+ order: Property.StaticDropdown({+ displayName: 'Order',+ description: 'Sort by creation date. Defaults to ascending.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Oldest first', value: 'ASC' },+ { label: 'Newest first', value: 'DESC' },+ ],+ },+ }),+ feedbackType: Property.StaticDropdown({+ displayName: 'Feedback Type',+ description: 'Only messages that received this feedback.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Thumbs up', value: 'THUMBS_UP' },+ { label: 'Thumbs down', value: 'THUMBS_DOWN' },+ ],+ },+ }),+ startDate: flowiseAiProps.startDate({ required: false }),+ endDate: flowiseAiProps.endDate({ required: false }),+ },+ async run(context) {+ const { chatflowId, chatId, sessionId, chatType, order, feedbackType, startDate, endDate } =+ context.propsValue;+ const messages = await flowiseApi.listChatMessages({+ auth: context.auth,+ chatflowId,+ filters: {+ chatId,+ sessionId,+ chatType,+ order,+ startDate,+ endDate,+ feedback: feedbackType ? 'true' : undefined,+ feedbackType,+ },+ });+ return { messages, count: messages.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-chatflows.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-chatflows.tsnew file mode 100644index 00000000000..ca48fc62b59--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-chatflows.ts@@ -0,0 +1,25 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseListChatflowsOutputSchema } from '../../output-schemas';++export const listChatflowsAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_chatflows',+ outputSchema: flowiseListChatflowsOutputSchema,+ displayName: 'List Chatflows',+ description: 'Lists every chatflow in the Flowise workspace.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists all chatflows (including agentflows) in the workspace with their ids, names, type and deployment state. Use it to find the Chatflow ID that Make Prediction, Get Chatflow and the chat message, feedback and lead actions take.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const chatflows = await flowiseApi.listChatflows({ auth: context.auth });+ return { chatflows, count: chatflows.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-document-stores.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-document-stores.tsnew file mode 100644index 00000000000..80fe4add0ff--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-document-stores.ts@@ -0,0 +1,25 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseListDocumentStoresOutputSchema } from '../../output-schemas';++export const listDocumentStoresAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_document_stores',+ outputSchema: flowiseListDocumentStoresOutputSchema,+ displayName: 'List Document Stores',+ description: 'Lists the document stores in the workspace.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists the document stores (knowledge bases) in the workspace with their ids, names, status and loaders. Returns the Document Store ID the other document store actions take.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const documentStores = await flowiseApi.listDocumentStores({ auth: context.auth });+ return { documentStores, count: documentStores.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-feedback.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-feedback.tsnew file mode 100644index 00000000000..74371b70477--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-feedback.ts@@ -0,0 +1,51 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseListFeedbackOutputSchema } from '../../output-schemas';++export const listFeedbackAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_feedback',+ outputSchema: flowiseListFeedbackOutputSchema,+ displayName: 'List Feedback',+ description: 'Lists the chat message feedback of a chatflow.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists thumbs-up / thumbs-down feedback left on the messages of one chatflow, optionally for one chat and a date range. Returns each feedback `id` for Update Feedback.',+ idempotent: true,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ chatId: flowiseAiProps.chatId({+ required: false,+ description: 'Only feedback from this chat session.',+ }),+ sortOrder: Property.StaticDropdown({+ displayName: 'Sort Order',+ description: 'Sort by creation date.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Oldest first', value: 'asc' },+ { label: 'Newest first', value: 'desc' },+ ],+ },+ }),+ startDate: flowiseAiProps.startDate({ required: false }),+ endDate: flowiseAiProps.endDate({ required: false }),+ },+ async run(context) {+ const { chatflowId, chatId, sortOrder, startDate, endDate } = context.propsValue;+ const feedback = await flowiseApi.listFeedback({+ auth: context.auth,+ chatflowId,+ filters: { chatId, sortOrder, startDate, endDate },+ });+ return { feedback, count: feedback.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-leads.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-leads.tsnew file mode 100644index 00000000000..9d4749423e7--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-leads.ts@@ -0,0 +1,31 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseListLeadsOutputSchema } from '../../output-schemas';++export const listLeadsAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_leads',+ outputSchema: flowiseListLeadsOutputSchema,+ displayName: 'List Leads',+ description: 'Lists the leads captured by a chatflow.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists every lead (name, email, phone) captured by one chatflow, with the chat each came from.',+ idempotent: true,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ },+ async run(context) {+ const leads = await flowiseApi.listLeads({+ auth: context.auth,+ chatflowId: context.propsValue.chatflowId,+ });+ return { leads, count: leads.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-tools.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-tools.tsnew file mode 100644index 00000000000..cb9e9dfefe2--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-tools.ts@@ -0,0 +1,25 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseListToolsOutputSchema } from '../../output-schemas';++export const listToolsAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_tools',+ outputSchema: flowiseListToolsOutputSchema,+ displayName: 'List Tools',+ description: 'Lists the custom tools in the workspace.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists the custom tools in the workspace with their ids, names, input schema and JavaScript function.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const tools = await flowiseApi.listTools({ auth: context.auth });+ return { tools, count: tools.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/list-variables.ts b/packages/pieces/community/flowise/src/lib/actions/ai/list-variables.tsnew file mode 100644index 00000000000..8050484b991--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/list-variables.ts@@ -0,0 +1,25 @@+import { createAction } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseListVariablesOutputSchema } from '../../output-schemas';++export const listVariablesAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_list_variables',+ outputSchema: flowiseListVariablesOutputSchema,+ displayName: 'List Variables',+ description: 'Lists the variables in the workspace.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Lists the workspace variables (used in flows as `$vars.<name>`) with their ids, names, values and types.',+ idempotent: true,+ },+ props: {},+ async run(context) {+ const variables = await flowiseApi.listVariables({ auth: context.auth });+ return { variables, count: variables.length };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/query-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/query-document-store.tsnew file mode 100644index 00000000000..2e09d6774c1--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/query-document-store.ts@@ -0,0 +1,33 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseQueryDocumentStoreOutputSchema } from '../../output-schemas';++export const queryDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_query_document_store',+ outputSchema: flowiseQueryDocumentStoreOutputSchema,+ displayName: 'Query Document Store',+ description: 'Runs a retrieval query against a document store.',+ audience: 'ai',+ classification: 'SEARCH',+ aiMetadata: {+ description:+ 'Runs a semantic retrieval query against the vector store of a document store and returns the matching chunks. The store must have been upserted first.',+ idempotent: true,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ query: Property.LongText({+ displayName: 'Query',+ description: 'The text to search for.',+ required: true,+ }),+ },+ async run(context) {+ const { storeId, query } = context.propsValue;+ return await flowiseApi.queryDocumentStore({ auth: context.auth, storeId, query });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/refresh-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/refresh-document-store.tsnew file mode 100644index 00000000000..efe62983eb1--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/refresh-document-store.ts@@ -0,0 +1,34 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseRefreshDocumentStoreOutputSchema } from '../../output-schemas';++export const refreshDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_refresh_document_store',+ outputSchema: flowiseRefreshDocumentStoreOutputSchema,+ displayName: 'Refresh Document Store',+ description: 'Re-processes and re-upserts every document in a document store.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Re-runs every loader of a document store and upserts the result into its vector store, e.g. after the source content changed. Returns one upsert result per loader.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ items: Property.Json({+ displayName: 'Loader Overrides',+ description:+ 'Optional array of per-loader configs to use instead of the saved ones, in the Upsert Document format.',+ required: false,+ }),+ },+ async run(context) {+ const { storeId, items } = context.propsValue;+ return await flowiseApi.refreshDocumentStore({ auth: context.auth, storeId, items });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-assistant.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-assistant.tsnew file mode 100644index 00000000000..96b0645f1da--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-assistant.ts@@ -0,0 +1,53 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseAssistantOutputSchema } from '../../output-schemas';++export const updateAssistantAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_assistant',+ outputSchema: flowiseAssistantOutputSchema,+ displayName: 'Update Assistant',+ description: 'Updates an assistant.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Updates an assistant by ID. `details` replaces the whole settings object, so pass every setting to keep (read them with Get Assistant first). OPENAI and AZURE assistants need both `details` and the Credential ID on every update.',+ idempotent: true,+ },+ props: {+ assistantId: Property.ShortText({+ displayName: 'Assistant ID',+ description: 'ID of the assistant, from List Assistants.',+ required: true,+ }),+ details: Property.Json({+ displayName: 'Details',+ description:+ 'Full assistant settings object; replaces the current one. Must include `name` for CUSTOM.',+ required: false,+ }),+ credential: Property.ShortText({+ displayName: 'Credential ID',+ description: 'For OPENAI and AZURE: ID of the Flowise credential with the OpenAI API key.',+ required: false,+ }),+ iconSrc: Property.ShortText({+ displayName: 'Icon URL',+ description: 'URL of the assistant icon.',+ required: false,+ }),+ },+ async run(context) {+ const { assistantId, details, credential, iconSrc } = context.propsValue;+ return await flowiseApi.updateAssistant({+ auth: context.auth,+ assistantId,+ details,+ credential,+ iconSrc,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-chatflow.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-chatflow.tsnew file mode 100644index 00000000000..73f64ab2236--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-chatflow.ts@@ -0,0 +1,57 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseChatflowOutputSchema } from '../../output-schemas';++export const updateChatflowAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_chatflow',+ outputSchema: flowiseChatflowOutputSchema,+ displayName: 'Update Chatflow',+ description: 'Updates a chatflow. Only the fields you set are changed.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Updates a chatflow by ID: name, flow graph, deployment, public access or category. Fields left empty stay as they are.',+ idempotent: true,+ },+ props: {+ chatflowId: flowiseAiProps.chatflowId({ required: true }),+ name: Property.ShortText({+ displayName: 'Name',+ description: 'New name of the chatflow.',+ required: false,+ }),+ flowData: Property.LongText({+ displayName: 'Flow Data',+ description: 'New flow graph as a JSON string; replaces the whole graph.',+ required: false,+ }),+ deployed: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Deployed',+ description: 'Whether the chatflow is deployed.',+ }),+ isPublic: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Public',+ description: 'Whether the chatflow is publicly accessible without an API key.',+ }),+ category: Property.ShortText({+ displayName: 'Category',+ description: 'Category tags, separated by `;`.',+ required: false,+ }),+ },+ async run(context) {+ const { chatflowId, name, flowData, deployed, isPublic, category } = context.propsValue;+ return await flowiseApi.updateChatflow({+ auth: context.auth,+ chatflowId,+ fields: { name, flowData, deployed, isPublic, category },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-document-chunk.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-document-chunk.tsnew file mode 100644index 00000000000..704bce8139b--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-document-chunk.ts@@ -0,0 +1,51 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseDocumentChunksOutputSchema } from '../../output-schemas';++export const updateDocumentChunkAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_document_chunk',+ outputSchema: flowiseDocumentChunksOutputSchema,+ displayName: 'Update Document Chunk',+ description: 'Replaces the text and metadata of one chunk.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Replaces the text (and optionally the metadata) of one chunk of a document loader. Chunk IDs come from Get Document Chunks. Run Refresh Document Store or Upsert Document afterwards to update the vector store.',+ idempotent: true,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ loaderId: flowiseAiProps.loaderId({ required: true }),+ chunkId: Property.ShortText({+ displayName: 'Chunk ID',+ description: 'ID of the chunk, from Get Document Chunks.',+ required: true,+ }),+ pageContent: Property.LongText({+ displayName: 'Content',+ description: 'New text of the chunk.',+ required: true,+ }),+ metadata: Property.Json({+ displayName: 'Metadata',+ description: 'New metadata object of the chunk.',+ required: false,+ }),+ },+ async run(context) {+ const { storeId, loaderId, chunkId, pageContent, metadata } = context.propsValue;+ return await flowiseApi.updateDocumentChunk({+ auth: context.auth,+ storeId,+ loaderId,+ chunkId,+ pageContent,+ metadata,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-document-store.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-document-store.tsnew file mode 100644index 00000000000..5bd50a4656f--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-document-store.ts@@ -0,0 +1,38 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseUpdateDocumentStoreOutputSchema } from '../../output-schemas';++export const updateDocumentStoreAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_document_store',+ outputSchema: flowiseUpdateDocumentStoreOutputSchema,+ displayName: 'Update Document Store',+ description: 'Renames a document store or changes its description.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Changes the name or description of a document store. Fields left empty stay as they are.',+ idempotent: true,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ name: Property.ShortText({ displayName: 'Name', description: 'New name.', required: false }),+ description: Property.LongText({+ displayName: 'Description',+ description: 'New description.',+ required: false,+ }),+ },+ async run(context) {+ const { storeId, name, description } = context.propsValue;+ return await flowiseApi.updateDocumentStore({+ auth: context.auth,+ storeId,+ fields: { name, description },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-feedback.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-feedback.tsnew file mode 100644index 00000000000..69bde7acf60--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-feedback.ts@@ -0,0 +1,52 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseUpdateFeedbackOutputSchema } from '../../output-schemas';++export const updateFeedbackAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_feedback',+ outputSchema: flowiseUpdateFeedbackOutputSchema,+ displayName: 'Update Feedback',+ description: 'Changes the rating or comment of a feedback entry.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Changes the rating or comment of one feedback entry by ID (from List Feedback or Create Feedback). Fields left empty stay as they are. Flowise returns only `{ status: "OK" }`; read the result with List Feedback.',+ idempotent: true,+ },+ props: {+ feedbackId: Property.ShortText({+ displayName: 'Feedback ID',+ description: 'ID of the feedback entry, from List Feedback or Create Feedback.',+ required: true,+ }),+ rating: Property.StaticDropdown({+ displayName: 'Rating',+ description: 'New rating.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Thumbs up', value: 'THUMBS_UP' },+ { label: 'Thumbs down', value: 'THUMBS_DOWN' },+ ],+ },+ }),+ content: Property.LongText({+ displayName: 'Comment',+ description: 'New comment.',+ required: false,+ }),+ },+ async run(context) {+ const { feedbackId, rating, content } = context.propsValue;+ return await flowiseApi.updateFeedback({+ auth: context.auth,+ feedbackId,+ fields: { rating, content },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-tool.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-tool.tsnew file mode 100644index 00000000000..1fe57327c55--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-tool.ts@@ -0,0 +1,65 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseToolOutputSchema } from '../../output-schemas';++export const updateToolAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_tool',+ outputSchema: flowiseToolOutputSchema,+ displayName: 'Update Tool',+ description: 'Updates a custom tool. Only the fields you set are changed.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Updates a custom tool by ID: name, description, color, input schema, function or icon. Fields left empty stay as they are.',+ idempotent: true,+ },+ props: {+ toolId: Property.ShortText({+ displayName: 'Tool ID',+ description: 'ID of the tool, from List Tools.',+ required: true,+ }),+ name: Property.ShortText({+ displayName: 'Name',+ description: 'New tool name.',+ required: false,+ }),+ description: Property.LongText({+ displayName: 'Description',+ description: 'New description.',+ required: false,+ }),+ color: Property.ShortText({+ displayName: 'Color',+ description: 'New card color.',+ required: false,+ }),+ schema: Property.LongText({+ displayName: 'Input Schema',+ description: 'New input schema as a JSON string array; replaces the current one.',+ required: false,+ }),+ func: Property.LongText({+ displayName: 'Function',+ description: 'New JavaScript function.',+ required: false,+ }),+ iconSrc: Property.ShortText({+ displayName: 'Icon URL',+ description: 'New icon URL.',+ required: false,+ }),+ },+ async run(context) {+ const { toolId, name, description, color, schema, func, iconSrc } = context.propsValue;+ return await flowiseApi.updateTool({+ auth: context.auth,+ toolId,+ fields: { name, description, color, schema, func, iconSrc },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/update-variable.ts b/packages/pieces/community/flowise/src/lib/actions/ai/update-variable.tsnew file mode 100644index 00000000000..22ca98fdb56--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/update-variable.ts@@ -0,0 +1,53 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseApi } from '../../common/api';+import { flowiseVariableOutputSchema } from '../../output-schemas';++export const updateVariableAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_update_variable',+ outputSchema: flowiseVariableOutputSchema,+ displayName: 'Update Variable',+ description: 'Updates a workspace variable. Only the fields you set are changed.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Updates a workspace variable by ID: name, value or type. Fields left empty stay as they are.',+ idempotent: true,+ },+ props: {+ variableId: Property.ShortText({+ displayName: 'Variable ID',+ description: 'ID of the variable, from List Variables.',+ required: true,+ }),+ name: Property.ShortText({+ displayName: 'Name',+ description: 'New variable name.',+ required: false,+ }),+ value: Property.LongText({ displayName: 'Value', description: 'New value.', required: false }),+ type: Property.StaticDropdown({+ displayName: 'Type',+ description: 'Static stores the value; runtime reads the server environment variable.',+ required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Static', value: 'static' },+ { label: 'Runtime', value: 'runtime' },+ ],+ },+ }),+ },+ async run(context) {+ const { variableId, name, value, type } = context.propsValue;+ return await flowiseApi.updateVariable({+ auth: context.auth,+ variableId,+ fields: { name, value, type },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/ai/upsert-document.ts b/packages/pieces/community/flowise/src/lib/actions/ai/upsert-document.tsnew file mode 100644index 00000000000..38e1cb5765f--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/ai/upsert-document.ts@@ -0,0 +1,95 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../../auth';+import { flowiseAiProps } from '../../common/ai-props';+import { flowiseApi } from '../../common/api';+import { flowiseUpsertDocumentOutputSchema } from '../../output-schemas';++export const upsertDocumentAction = createAction({+ auth: flowiseAuth,+ name: 'flowise_upsert_document',+ outputSchema: flowiseUpsertDocumentOutputSchema,+ displayName: 'Upsert Document',+ description: 'Loads, splits and upserts a document into a document store.',+ audience: 'ai',+ classification: 'WRITE',+ aiMetadata: {+ description:+ 'Loads a document into a document store and upserts its chunks into the vector store. Pass a Loader ID to re-run an existing loader (optionally with new config), or a loader config to add one. The store needs an embedding and vector store config, either already saved on it or passed here.',+ idempotent: false,+ },+ props: {+ storeId: flowiseAiProps.storeId({ required: true }),+ docId: flowiseAiProps.loaderId({+ required: false,+ displayName: 'Loader ID',+ description:+ 'ID of an existing loader in the store to re-run. Leave empty to add a new loader from Loader.',+ }),+ replaceExisting: flowiseAiProps.yesNo({+ required: false,+ displayName: 'Replace Existing',+ description: 'Replace the existing loader config and chunks instead of merging.',+ }),+ metadata: Property.Json({+ displayName: 'Metadata',+ description: 'Metadata added to every chunk.',+ required: false,+ }),+ loader: Property.Json({+ displayName: 'Loader',+ description: 'Loader config, e.g. `{"name":"plainText","config":{"text":"..."}}`.',+ required: false,+ }),+ splitter: Property.Json({+ displayName: 'Splitter',+ description:+ 'Text splitter config, e.g. `{"name":"recursiveCharacterTextSplitter","config":{"chunkSize":1000}}`.',+ required: false,+ }),+ embedding: Property.Json({+ displayName: 'Embedding',+ description:+ 'Embedding model config, e.g. `{"name":"openAIEmbeddings","config":{"credential":"<credential id>"}}`.',+ required: false,+ }),+ vectorStore: Property.Json({+ displayName: 'Vector Store',+ description: 'Vector store config, e.g. `{"name":"faiss","config":{}}`.',+ required: false,+ }),+ recordManager: Property.Json({+ displayName: 'Record Manager',+ description:+ 'Record manager config. Needed for Delete Vector Store Data to remove these chunks later.',+ required: false,+ }),+ },+ async run(context) {+ const {+ storeId,+ docId,+ replaceExisting,+ metadata,+ loader,+ splitter,+ embedding,+ vectorStore,+ recordManager,+ } = context.propsValue;+ return await flowiseApi.upsertDocument({+ auth: context.auth,+ storeId,+ fields: {+ docId,+ replaceExisting,+ metadata,+ loader,+ splitter,+ embedding,+ vectorStore,+ recordManager,+ },+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/actions/make-prediction.ts b/packages/pieces/community/flowise/src/lib/actions/make-prediction.tsnew file mode 100644index 00000000000..b528c5d726e--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/actions/make-prediction.ts@@ -0,0 +1,51 @@+import { createAction, Property } from '@activepieces/pieces-framework';++import { flowiseAuth } from '../auth';+import { flowiseApi } from '../common/api';+import { makePredictionOutputSchema } from '../output-schemas';++export const makePredictionAction = createAction({+ name: 'make_prediction',+ outputSchema: makePredictionOutputSchema,+ classification: 'WRITE',+ displayName: 'Make Prediction',+ description: 'Run Flowise Predict',+ audience: 'both',+ aiMetadata: {+ description:+ 'Sends a question/input to a specific Flowise chatflow by its Chatflow ID and returns the prediction, optionally passing prior conversation history and runtime override config. Use to invoke a deployed Flowise AI workflow (chatbot, RAG, agent) for inference. Requires the target Chatflow ID; not idempotent since each call generates a fresh model response.',+ idempotent: false,+ },+ auth: flowiseAuth,+ props: {+ chatflow_id: Property.ShortText({+ displayName: 'Chatflow ID',+ description: 'Enter the Chatflow ID',+ required: true,+ }),+ input: Property.ShortText({+ displayName: 'Input/Question',+ description: 'Enter the Input/Question',+ required: true,+ }),+ history: Property.Json({+ displayName: 'History',+ description: 'Enter the History',+ required: false,+ }),+ overrideConfig: Property.Json({+ displayName: 'Override Config',+ description: 'Enter the Override Config',+ required: false,+ }),+ },+ async run(ctx) {+ return await flowiseApi.createPrediction({+ auth: ctx.auth,+ chatflowId: ctx.propsValue.chatflow_id,+ question: ctx.propsValue.input,+ history: ctx.propsValue.history,+ overrideConfig: ctx.propsValue.overrideConfig,+ });+ },+});diff --git a/packages/pieces/community/flowise/src/lib/auth.ts b/packages/pieces/community/flowise/src/lib/auth.tsnew file mode 100644index 00000000000..901e53c0850--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/auth.ts@@ -0,0 +1,32 @@+import { HttpError } from '@activepieces/pieces-common';+import { AppConnectionType, PieceAuth, Property, tryCatch } from '@activepieces/pieces-framework';++import { flowiseApi } from './common/api';++export const flowiseAuth = PieceAuth.CustomAuth({+ description: 'Enter your Flowise URL and API Key',+ props: {+ base_url: Property.ShortText({+ displayName: 'Base URL',+ description: 'Enter the base URL',+ required: true,+ }),+ access_token: PieceAuth.SecretText({+ displayName: 'API Key',+ description: 'Enter the API Key',+ required: true,+ }),+ },+ required: true,+ validate: async ({ auth }) => {+ const { data, error } = await tryCatch(() =>+ flowiseApi.listChatflows({ auth: { type: AppConnectionType.CUSTOM_AUTH, props: auth } }),+ );+ if (error instanceof HttpError && error.response.status === 403) {+ return { valid: true };+ }+ return Array.isArray(data)+ ? { valid: true }+ : { valid: false, error: 'Invalid Base URL or API Key' };+ },+});diff --git a/packages/pieces/community/flowise/src/lib/common/ai-props.ts b/packages/pieces/community/flowise/src/lib/common/ai-props.tsnew file mode 100644index 00000000000..eca844f158b--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/common/ai-props.ts@@ -0,0 +1,65 @@+import { Property } from '@activepieces/pieces-framework';++function chatflowId<R extends boolean>({+ required,+ displayName = 'Chatflow ID',+ description = 'ID of the chatflow (agentflow or assistant flow). Use List Chatflows to find it.',+}: PropParams<R>) {+ return Property.ShortText({ displayName, description, required });+}++function chatId<R extends boolean>({+ required,+ displayName = 'Chat ID',+ description = 'ID of one chat session, returned as `chatId` by Make Prediction and List Chat Messages.',+}: PropParams<R>) {+ return Property.ShortText({ displayName, description, required });+}++function storeId<R extends boolean>({+ required,+ displayName = 'Document Store ID',+ description = 'ID of the document store. Use List Document Stores to find it.',+}: PropParams<R>) {+ return Property.ShortText({ displayName, description, required });+}++function loaderId<R extends boolean>({+ required,+ displayName = 'Loader ID',+ description = 'ID of a document loader inside the store, from the `loaders` array of Get Document Store.',+}: PropParams<R>) {+ return Property.ShortText({ displayName, description, required });+}++function startDate<R extends boolean>({+ required,+ displayName = 'Start Date',+ description = 'Only include records created on or after this date (ISO 8601).',+}: PropParams<R>) {+ return Property.DateTime({ displayName, description, required });+}++function endDate<R extends boolean>({+ required,+ displayName = 'End Date',+ description = 'Only include records created on or before this date (ISO 8601).',+}: PropParams<R>) {+ return Property.DateTime({ displayName, description, required });+}++function yesNo<R extends boolean>({+ required,+ displayName,+ description,+}: PropParams<R> & { displayName: string }) {+ return Property.Checkbox({ displayName, description, required });+}++export const flowiseAiProps = { chatflowId, chatId, storeId, loaderId, startDate, endDate, yesNo };++export type PropParams<R extends boolean> = {+ required: R;+ displayName?: string;+ description?: string;+};diff --git a/packages/pieces/community/flowise/src/lib/common/api.ts b/packages/pieces/community/flowise/src/lib/common/api.tsnew file mode 100644index 00000000000..e5b2f915e33--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/common/api.ts@@ -0,0 +1,771 @@+import { randomUUID } from 'node:crypto';++import FormData from 'form-data';++import { HttpMethod } from '@activepieces/pieces-common';++import { flowiseClient } from './client';++import type {+ FlowiseAssistant,+ FlowiseAttachment,+ FlowiseAuthValue,+ FlowiseChatflow,+ FlowiseChatMessage,+ FlowiseDocumentChunks,+ FlowiseDocumentStore,+ FlowiseFeedback,+ FlowiseFile,+ FlowiseLead,+ FlowisePrediction,+ FlowiseQueryResult,+ FlowiseTool,+ FlowiseUpsertResult,+ FlowiseVariable,+} from './types';++async function createPrediction({+ auth,+ chatflowId,+ question,+ history,+ overrideConfig,+}: CreatePredictionParams & { auth: FlowiseAuthValue }): Promise<FlowisePrediction> {+ return await flowiseClient.request<FlowisePrediction>({+ auth,+ method: HttpMethod.POST,+ path: `/api/v1/prediction/${chatflowId}`,+ headers: { 'Content-Type': 'application/json' },+ body: { question, history, overrideConfig },+ });+}++async function listChatflows({ auth }: { auth: FlowiseAuthValue }): Promise<FlowiseChatflow[]> {+ return await flowiseClient.request<FlowiseChatflow[]>({+ auth,+ method: HttpMethod.GET,+ path: '/api/v1/chatflows',+ });+}++async function getChatflow({+ auth,+ chatflowId,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+}): Promise<FlowiseChatflow> {+ return await flowiseClient.request<FlowiseChatflow>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/chatflows/${chatflowId}`,+ });+}++async function createChatflow({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: ChatflowFields;+}): Promise<FlowiseChatflow> {+ return await flowiseClient.request<FlowiseChatflow>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/chatflows',+ body: fields,+ });+}++async function updateChatflow({+ auth,+ chatflowId,+ fields,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+ fields: Partial<ChatflowFields>;+}): Promise<FlowiseChatflow> {+ return await flowiseClient.request<FlowiseChatflow>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/chatflows/${chatflowId}`,+ body: fields,+ });+}++async function deleteChatflow({+ auth,+ chatflowId,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/chatflows/${chatflowId}`,+ });+}++async function listChatMessages({+ auth,+ chatflowId,+ filters,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+ filters: Record<string, string | undefined>;+}): Promise<FlowiseChatMessage[]> {+ return await flowiseClient.request<FlowiseChatMessage[]>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/chatmessage/${chatflowId}`,+ query: filters,+ });+}++async function deleteChatMessages({+ auth,+ chatflowId,+ filters,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+ filters: Record<string, string | undefined>;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/chatmessage/${chatflowId}`,+ query: filters,+ });+}++async function listFeedback({+ auth,+ chatflowId,+ filters,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+ filters: Record<string, string | undefined>;+}): Promise<FlowiseFeedback[]> {+ return await flowiseClient.request<FlowiseFeedback[]>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/feedback/${chatflowId}`,+ query: filters,+ });+}++async function createFeedback({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: FeedbackFields;+}): Promise<FlowiseFeedback> {+ return await flowiseClient.request<FlowiseFeedback>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/feedback',+ body: fields,+ });+}++async function updateFeedback({+ auth,+ feedbackId,+ fields,+}: {+ auth: FlowiseAuthValue;+ feedbackId: string;+ fields: Partial<FeedbackFields>;+}): Promise<FlowiseFeedback> {+ return await flowiseClient.request<FlowiseFeedback>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/feedback/${feedbackId}`,+ body: fields,+ });+}++async function listLeads({+ auth,+ chatflowId,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+}): Promise<FlowiseLead[]> {+ return await flowiseClient.request<FlowiseLead[]>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/leads/${chatflowId}`,+ });+}++async function createLead({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: LeadFields;+}): Promise<FlowiseLead> {+ return await flowiseClient.request<FlowiseLead>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/leads',+ body: fields,+ });+}++async function listAssistants({+ auth,+ type,+}: {+ auth: FlowiseAuthValue;+ type?: string;+}): Promise<FlowiseAssistant[]> {+ return await flowiseClient.request<FlowiseAssistant[]>({+ auth,+ method: HttpMethod.GET,+ path: '/api/v1/assistants',+ query: { type },+ });+}++async function getAssistant({+ auth,+ assistantId,+}: {+ auth: FlowiseAuthValue;+ assistantId: string;+}): Promise<FlowiseAssistant> {+ return await flowiseClient.request<FlowiseAssistant>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/assistants/${assistantId}`,+ });+}++async function createAssistant({+ auth,+ type,+ details,+ credential,+ iconSrc,+}: AssistantFields & { auth: FlowiseAuthValue }): Promise<FlowiseAssistant> {+ return await flowiseClient.request<FlowiseAssistant>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/assistants',+ body: {+ type,+ details: JSON.stringify(details),+ credential: credential ?? (type === 'CUSTOM' ? randomUUID() : undefined),+ iconSrc,+ },+ });+}++async function updateAssistant({+ auth,+ assistantId,+ details,+ credential,+ iconSrc,+}: Partial<AssistantFields> & {+ auth: FlowiseAuthValue;+ assistantId: string;+}): Promise<FlowiseAssistant> {+ return await flowiseClient.request<FlowiseAssistant>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/assistants/${assistantId}`,+ body: {+ details: details === undefined ? undefined : JSON.stringify(details),+ credential,+ iconSrc,+ },+ });+}++async function deleteAssistant({+ auth,+ assistantId,+ isDeleteBoth,+}: {+ auth: FlowiseAuthValue;+ assistantId: string;+ isDeleteBoth?: boolean;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/assistants/${assistantId}`,+ query: { isDeleteBoth: isDeleteBoth ? 'true' : undefined },+ });+}++async function listTools({ auth }: { auth: FlowiseAuthValue }): Promise<FlowiseTool[]> {+ return await flowiseClient.request<FlowiseTool[]>({+ auth,+ method: HttpMethod.GET,+ path: '/api/v1/tools',+ });+}++async function getTool({+ auth,+ toolId,+}: {+ auth: FlowiseAuthValue;+ toolId: string;+}): Promise<FlowiseTool> {+ return await flowiseClient.request<FlowiseTool>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/tools/${toolId}`,+ });+}++async function createTool({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: ToolFields;+}): Promise<FlowiseTool> {+ return await flowiseClient.request<FlowiseTool>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/tools',+ body: fields,+ });+}++async function updateTool({+ auth,+ toolId,+ fields,+}: {+ auth: FlowiseAuthValue;+ toolId: string;+ fields: Partial<ToolFields>;+}): Promise<FlowiseTool> {+ return await flowiseClient.request<FlowiseTool>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/tools/${toolId}`,+ body: fields,+ });+}++async function deleteTool({+ auth,+ toolId,+}: {+ auth: FlowiseAuthValue;+ toolId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/tools/${toolId}`,+ });+}++async function listVariables({ auth }: { auth: FlowiseAuthValue }): Promise<FlowiseVariable[]> {+ return await flowiseClient.request<FlowiseVariable[]>({+ auth,+ method: HttpMethod.GET,+ path: '/api/v1/variables',+ });+}++async function createVariable({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: VariableFields;+}): Promise<FlowiseVariable> {+ return await flowiseClient.request<FlowiseVariable>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/variables',+ body: fields,+ });+}++async function updateVariable({+ auth,+ variableId,+ fields,+}: {+ auth: FlowiseAuthValue;+ variableId: string;+ fields: Partial<VariableFields>;+}): Promise<FlowiseVariable> {+ return await flowiseClient.request<FlowiseVariable>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/variables/${variableId}`,+ body: fields,+ });+}++async function deleteVariable({+ auth,+ variableId,+}: {+ auth: FlowiseAuthValue;+ variableId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/variables/${variableId}`,+ });+}++async function listDocumentStores({+ auth,+}: {+ auth: FlowiseAuthValue;+}): Promise<FlowiseDocumentStore[]> {+ return await flowiseClient.request<FlowiseDocumentStore[]>({+ auth,+ method: HttpMethod.GET,+ path: '/api/v1/document-store/store',+ });+}++async function getDocumentStore({+ auth,+ storeId,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+}): Promise<FlowiseDocumentStore> {+ return await flowiseClient.request<FlowiseDocumentStore>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/document-store/store/${storeId}`,+ });+}++async function createDocumentStore({+ auth,+ fields,+}: {+ auth: FlowiseAuthValue;+ fields: DocumentStoreFields;+}): Promise<FlowiseDocumentStore> {+ return await flowiseClient.request<FlowiseDocumentStore>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/document-store/store',+ body: fields,+ });+}++async function updateDocumentStore({+ auth,+ storeId,+ fields,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ fields: Partial<DocumentStoreFields>;+}): Promise<FlowiseDocumentStore> {+ return await flowiseClient.request<FlowiseDocumentStore>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/document-store/store/${storeId}`,+ body: fields,+ });+}++async function deleteDocumentStore({+ auth,+ storeId,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/document-store/store/${storeId}`,+ });+}++async function getDocumentChunks({+ auth,+ storeId,+ loaderId,+ pageNo,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ loaderId: string;+ pageNo: number;+}): Promise<FlowiseDocumentChunks> {+ return await flowiseClient.request<FlowiseDocumentChunks>({+ auth,+ method: HttpMethod.GET,+ path: `/api/v1/document-store/chunks/${storeId}/${loaderId}/${pageNo}`,+ });+}++async function updateDocumentChunk({+ auth,+ storeId,+ loaderId,+ chunkId,+ pageContent,+ metadata,+}: ChunkParams & {+ auth: FlowiseAuthValue;+ pageContent: string;+ metadata?: Record<string, unknown>;+}): Promise<FlowiseDocumentChunks> {+ return await flowiseClient.request<FlowiseDocumentChunks>({+ auth,+ method: HttpMethod.PUT,+ path: `/api/v1/document-store/chunks/${storeId}/${loaderId}/${chunkId}`,+ body: { pageContent, metadata },+ });+}++async function deleteDocumentChunk({+ auth,+ storeId,+ loaderId,+ chunkId,+}: ChunkParams & { auth: FlowiseAuthValue }): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/document-store/chunks/${storeId}/${loaderId}/${chunkId}`,+ });+}++async function deleteDocumentLoader({+ auth,+ storeId,+ loaderId,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ loaderId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/document-store/loader/${storeId}/${loaderId}`,+ });+}++async function upsertDocument({+ auth,+ storeId,+ fields,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ fields: Record<string, unknown>;+}): Promise<FlowiseUpsertResult> {+ return await flowiseClient.request<FlowiseUpsertResult>({+ auth,+ method: HttpMethod.POST,+ path: `/api/v1/document-store/upsert/${storeId}`,+ body: fields,+ });+}++async function refreshDocumentStore({+ auth,+ storeId,+ items,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ items?: unknown;+}): Promise<FlowiseUpsertResult[]> {+ return await flowiseClient.request<FlowiseUpsertResult[]>({+ auth,+ method: HttpMethod.POST,+ path: `/api/v1/document-store/refresh/${storeId}`,+ body: { items },+ });+}++async function queryDocumentStore({+ auth,+ storeId,+ query,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+ query: string;+}): Promise<FlowiseQueryResult> {+ return await flowiseClient.request<FlowiseQueryResult>({+ auth,+ method: HttpMethod.POST,+ path: '/api/v1/document-store/vectorstore/query',+ body: { storeId, query },+ });+}++async function deleteVectorStoreData({+ auth,+ storeId,+}: {+ auth: FlowiseAuthValue;+ storeId: string;+}): Promise<unknown> {+ return await flowiseClient.request<unknown>({+ auth,+ method: HttpMethod.DELETE,+ path: `/api/v1/document-store/vectorstore/${storeId}`,+ });+}++async function createAttachments({+ auth,+ chatflowId,+ chatId,+ file,+ base64,+}: {+ auth: FlowiseAuthValue;+ chatflowId: string;+ chatId: string;+ file: FlowiseFile;+ base64?: boolean;+}): Promise<FlowiseAttachment[]> {+ const form = new FormData();+ form.append('files', file.data, { filename: file.filename });+ if (base64 !== undefined) {+ form.append('base64', String(base64));+ }+ return await flowiseClient.request<FlowiseAttachment[]>({+ auth,+ method: HttpMethod.POST,+ path: `/api/v1/attachments/${chatflowId}/${chatId}`,+ headers: form.getHeaders(),+ body: form,+ });+}++export const flowiseApi = {+ createPrediction,+ listChatflows,+ getChatflow,+ createChatflow,+ updateChatflow,+ deleteChatflow,+ listChatMessages,+ deleteChatMessages,+ listFeedback,+ createFeedback,+ updateFeedback,+ listLeads,+ createLead,+ listAssistants,+ getAssistant,+ createAssistant,+ updateAssistant,+ deleteAssistant,+ listTools,+ getTool,+ createTool,+ updateTool,+ deleteTool,+ listVariables,+ createVariable,+ updateVariable,+ deleteVariable,+ listDocumentStores,+ getDocumentStore,+ createDocumentStore,+ updateDocumentStore,+ deleteDocumentStore,+ getDocumentChunks,+ updateDocumentChunk,+ deleteDocumentChunk,+ deleteDocumentLoader,+ upsertDocument,+ refreshDocumentStore,+ queryDocumentStore,+ deleteVectorStoreData,+ createAttachments,+};++type CreatePredictionParams = {+ chatflowId: string;+ question: string;+ history?: unknown;+ overrideConfig?: unknown;+};++type ChatflowFields = {+ name: string;+ flowData?: string;+ type?: string;+ deployed?: boolean;+ isPublic?: boolean;+ category?: string;+};++type FeedbackFields = {+ chatflowid: string;+ chatId: string;+ messageId: string;+ rating: string;+ content?: string;+};++type LeadFields = {+ chatflowid: string;+ chatId?: string;+ name?: string;+ email?: string;+ phone?: string;+};++type AssistantFields = {+ type: string;+ details: Record<string, unknown>;+ credential?: string;+ iconSrc?: string;+};++type ToolFields = {+ name: string;+ description: string;+ color: string;+ iconSrc?: string;+ schema?: string;+ func?: string;+};++type VariableFields = {+ name: string;+ value?: string;+ type?: string;+};++type DocumentStoreFields = {+ name: string;+ description?: string;+};++type ChunkParams = {+ storeId: string;+ loaderId: string;+ chunkId: string;+};diff --git a/packages/pieces/community/flowise/src/lib/common/client.ts b/packages/pieces/community/flowise/src/lib/common/client.tsnew file mode 100644index 00000000000..bbc1eb1e042--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/common/client.ts@@ -0,0 +1,48 @@+import { HttpHeaders, HttpMethod, httpClient } from '@activepieces/pieces-common';++import type { FlowiseAuthValue } from './types';++function baseUrl({ auth }: { auth: FlowiseAuthValue }): string {+ return auth.props.base_url;+}++async function request<T>({+ auth,+ method,+ path,+ query,+ body,+ headers,+}: RequestParams & { auth: FlowiseAuthValue }): Promise<T> {+ const response = await httpClient.sendRequest<T>({+ method,+ url: `${baseUrl({ auth })}${path}`,+ headers: {+ ...headers,+ Authorization: `Bearer ${auth.props.access_token}`,+ },+ queryParams: query ? definedQuery({ query }) : undefined,+ body,+ });+ return response.body;+}++function definedQuery({+ query,+}: {+ query: Record<string, string | undefined>;+}): Record<string, string> {+ return Object.fromEntries(+ Object.entries(query).filter((entry): entry is [string, string] => entry[1] !== undefined),+ );+}++export const flowiseClient = { baseUrl, request };++type RequestParams = {+ method: HttpMethod;+ path: string;+ query?: Record<string, string | undefined>;+ body?: unknown;+ headers?: HttpHeaders;+};diff --git a/packages/pieces/community/flowise/src/lib/common/types.ts b/packages/pieces/community/flowise/src/lib/common/types.tsnew file mode 100644index 00000000000..beec1a3ad8a--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/common/types.ts@@ -0,0 +1,114 @@+import type { AppConnectionType } from '@activepieces/pieces-framework';++export type FlowiseAuthValue = {+ type: AppConnectionType.CUSTOM_AUTH;+ props: { base_url: string; access_token: string };+};++export type FlowisePrediction = {+ text?: string;+ question?: string;+ chatId?: string;+ chatMessageId?: string;+ sessionId?: string;+};++export type FlowiseChatflow = {+ id: string;+ name: string;+ flowData?: string;+ deployed?: boolean;+ isPublic?: boolean;+ category?: string;+ type?: string;+};++export type FlowiseChatMessage = {+ id: string;+ role: string;+ chatflowid: string;+ content: string;+ chatId: string;+ sessionId?: string;+};++export type FlowiseFeedback = {+ id: string;+ chatflowid: string;+ chatId: string;+ messageId: string;+ rating: string;+ content?: string;+};++export type FlowiseLead = {+ id: string;+ name?: string;+ email?: string;+ phone?: string;+ chatflowid: string;+ chatId: string;+};++export type FlowiseAssistant = {+ id: string;+ details: string;+ credential: string;+ iconSrc?: string;+ type?: string;+};++export type FlowiseTool = {+ id: string;+ name: string;+ description: string;+ color: string;+ iconSrc?: string;+ schema?: string;+ func?: string;+};++export type FlowiseVariable = {+ id: string;+ name: string;+ value?: string;+ type: string;+};++export type FlowiseDocumentStore = {+ id: string;+ name: string;+ description?: string;+ status?: string;+};++export type FlowiseDocumentChunks = {+ chunks: Record<string, unknown>[];+ count: number;+ currentPage: number;+};++export type FlowiseUpsertResult = {+ numAdded?: number;+ numDeleted?: number;+ numUpdated?: number;+ numSkipped?: number;+ addedDocs?: Record<string, unknown>[];+};++export type FlowiseQueryResult = {+ timeTaken?: number;+ docs?: Record<string, unknown>[];+};++export type FlowiseAttachment = {+ name: string;+ mimeType: string;+ size: number;+ content: string;+};++export type FlowiseFile = {+ filename: string;+ data: Buffer;+};diff --git a/packages/pieces/community/flowise/src/lib/output-schemas.ts b/packages/pieces/community/flowise/src/lib/output-schemas.tsnew file mode 100644index 00000000000..c514b4bb1b1--- /dev/null+++ b/packages/pieces/community/flowise/src/lib/output-schemas.ts@@ -0,0 +1,354 @@+import { OutputSchema } from '@activepieces/pieces-framework';++const chatflowFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Chatflow ID' },+ { key: 'name', label: 'Name' },+ { key: 'type', label: 'Type' },+ { key: 'flowData', label: 'Flow Data (JSON)' },+ { key: 'deployed', label: 'Deployed', format: 'boolean' },+ { key: 'isPublic', label: 'Public', format: 'boolean' },+ { key: 'category', label: 'Category' },+ { key: 'apikeyid', label: 'API Key ID' },+ { key: 'chatbotConfig', label: 'Chatbot Config (JSON)' },+ { key: 'apiConfig', label: 'API Config (JSON)' },+ { key: 'analytic', label: 'Analytics Config (JSON)' },+ { key: 'speechToText', label: 'Speech To Text Config (JSON)' },+ { key: 'textToSpeech', label: 'Text To Speech Config (JSON)' },+ { key: 'followUpPrompts', label: 'Follow-Up Prompts Config (JSON)' },+ { key: 'workspaceId', label: 'Workspace ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ { key: 'updatedDate', label: 'Updated Date', format: 'datetime' },+];++const assistantFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Assistant ID' },+ { key: 'type', label: 'Type' },+ { key: 'details', label: 'Details (JSON)' },+ { key: 'credential', label: 'Credential ID' },+ { key: 'iconSrc', label: 'Icon', format: 'image' },+ { key: 'workspaceId', label: 'Workspace ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ { key: 'updatedDate', label: 'Updated Date', format: 'datetime' },+];++const toolFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Tool ID' },+ { key: 'name', label: 'Name' },+ { key: 'description', label: 'Description' },+ { key: 'schema', label: 'Input Schema (JSON)' },+ { key: 'func', label: 'Function' },+ { key: 'color', label: 'Color' },+ { key: 'iconSrc', label: 'Icon', format: 'image' },+ { key: 'workspaceId', label: 'Workspace ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ { key: 'updatedDate', label: 'Updated Date', format: 'datetime' },+];++const variableFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Variable ID' },+ { key: 'name', label: 'Name' },+ { key: 'value', label: 'Value' },+ { key: 'type', label: 'Type' },+ { key: 'workspaceId', label: 'Workspace ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ { key: 'updatedDate', label: 'Updated Date', format: 'datetime' },+];++const loaderFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Loader ID' },+ { key: 'loaderId', label: 'Loader Type' },+ { key: 'loaderName', label: 'Loader Name' },+ { key: 'loaderConfig', label: 'Loader Config', dynamicKey: true },+ { key: 'splitterId', label: 'Splitter Type' },+ { key: 'splitterName', label: 'Splitter Name' },+ { key: 'splitterConfig', label: 'Splitter Config', dynamicKey: true },+ { key: 'totalChunks', label: 'Total Chunks', format: 'number' },+ { key: 'totalChars', label: 'Total Characters', format: 'number' },+ { key: 'status', label: 'Status' },+];++const documentStoreBaseFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Document Store ID' },+ { key: 'name', label: 'Name' },+ { key: 'description', label: 'Description' },+ { key: 'status', label: 'Status' },+ { key: 'whereUsed', label: 'Used By Chatflows' },+ {+ key: 'vectorStoreConfig',+ label: 'Vector Store Config',+ children: [{ key: 'name', label: 'Vector Store' }],+ },+ {+ key: 'embeddingConfig',+ label: 'Embedding Config',+ children: [{ key: 'name', label: 'Embedding Model' }],+ },+ { key: 'recordManagerConfig', label: 'Record Manager Config' },+ { key: 'workspaceId', label: 'Workspace ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ { key: 'updatedDate', label: 'Updated Date', format: 'datetime' },+];++const documentStoreFields: OutputSchema['fields'] = [+ ...documentStoreBaseFields,+ {+ key: 'loaders',+ label: 'Loaders',+ labelKey: 'loaderName',+ listItems: [...loaderFields, { key: 'source', label: 'Source' }],+ },+ { key: 'totalChunks', label: 'Total Chunks', format: 'number' },+ { key: 'totalChars', label: 'Total Characters', format: 'number' },+];++const documentStoreSummaryFields: OutputSchema['fields'] = [+ ...documentStoreBaseFields,+ { key: 'loaders', label: 'Loaders' },+ { key: 'totalChunks', label: 'Total Chunks', format: 'number' },+ { key: 'totalChars', label: 'Total Characters', format: 'number' },+];++const documentFields: OutputSchema['fields'] = [+ { key: 'pageContent', label: 'Content' },+ { key: 'metadata', label: 'Metadata', dynamicKey: true },+];++const refreshResultFields: OutputSchema['fields'] = [+ { key: 'docId', label: 'Loader ID' },+ { key: 'numAdded', label: 'Added', format: 'number' },+ { key: 'addedDocs', label: 'Added Documents', listItems: documentFields },+];++const upsertResultFields: OutputSchema['fields'] = [+ { key: 'docId', label: 'Loader ID' },+ { key: 'numAdded', label: 'Added', format: 'number' },+ { key: 'numUpdated', label: 'Updated', format: 'number' },+ { key: 'numDeleted', label: 'Deleted', format: 'number' },+ { key: 'numSkipped', label: 'Skipped', format: 'number' },+ { key: 'totalKeys', label: 'Total Keys', format: 'number' },+ { key: 'addedDocs', label: 'Added Documents', listItems: documentFields },+];++const feedbackFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Feedback ID' },+ { key: 'rating', label: 'Rating' },+ { key: 'content', label: 'Comment' },+ { key: 'messageId', label: 'Message ID' },+ { key: 'chatId', label: 'Chat ID' },+ { key: 'chatflowid', label: 'Chatflow ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+];++const leadFields: OutputSchema['fields'] = [+ { key: 'id', label: 'Lead ID' },+ { key: 'name', label: 'Name' },+ { key: 'email', label: 'Email', format: 'email' },+ { key: 'phone', label: 'Phone' },+ { key: 'chatId', label: 'Chat ID' },+ { key: 'chatflowid', label: 'Chatflow ID' },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+];++export const flowiseChatflowOutputSchema: OutputSchema = { fields: chatflowFields };++export const flowiseListChatflowsOutputSchema: OutputSchema = {+ fields: [+ { key: 'chatflows', label: 'Chatflows', labelKey: 'name', listItems: chatflowFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseAssistantOutputSchema: OutputSchema = { fields: assistantFields };++export const flowiseListAssistantsOutputSchema: OutputSchema = {+ fields: [+ { key: 'assistants', label: 'Assistants', labelKey: 'id', listItems: assistantFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseToolOutputSchema: OutputSchema = { fields: toolFields };++export const flowiseListToolsOutputSchema: OutputSchema = {+ fields: [+ { key: 'tools', label: 'Tools', labelKey: 'name', listItems: toolFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseVariableOutputSchema: OutputSchema = { fields: variableFields };++export const flowiseListVariablesOutputSchema: OutputSchema = {+ fields: [+ { key: 'variables', label: 'Variables', labelKey: 'name', listItems: variableFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseDeleteResultOutputSchema: OutputSchema = {+ fields: [+ { key: 'affected', label: 'Records Deleted', format: 'number' },+ { key: 'raw', label: 'Raw Result' },+ ],+};++export const flowiseDocumentStoreOutputSchema: OutputSchema = { fields: documentStoreFields };++export const flowiseUpdateDocumentStoreOutputSchema: OutputSchema = {+ fields: documentStoreSummaryFields,+};++export const flowiseCreateDocumentStoreOutputSchema: OutputSchema = {+ fields: [...documentStoreBaseFields, { key: 'loaders', label: 'Loaders (JSON)' }],+};++export const flowiseListDocumentStoresOutputSchema: OutputSchema = {+ fields: [+ {+ key: 'documentStores',+ label: 'Document Stores',+ labelKey: 'name',+ listItems: documentStoreSummaryFields,+ },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseDeleteDocumentStoreOutputSchema: OutputSchema = {+ fields: [{ key: 'deleted', label: 'Deleted', format: 'number' }],+};++export const flowiseDocumentChunksOutputSchema: OutputSchema = {+ fields: [+ {+ key: 'chunks',+ label: 'Chunks',+ labelKey: 'chunkNo',+ listItems: [+ { key: 'id', label: 'Chunk ID' },+ { key: 'chunkNo', label: 'Chunk Number', format: 'number' },+ { key: 'pageContent', label: 'Content' },+ { key: 'metadata', label: 'Metadata (JSON)' },+ { key: 'docId', label: 'Loader ID' },+ { key: 'storeId', label: 'Document Store ID' },+ ],+ },+ { key: 'count', label: 'Total Chunks', format: 'number' },+ { key: 'currentPage', label: 'Current Page', format: 'number' },+ { key: 'characters', label: 'Total Characters', format: 'number' },+ { key: 'docId', label: 'Loader ID' },+ { key: 'storeName', label: 'Document Store Name' },+ { key: 'description', label: 'Document Store Description' },+ { key: 'file', label: 'Loader', children: loaderFields },+ { key: 'workspaceId', label: 'Workspace ID' },+ ],+};++export const flowiseUpsertDocumentOutputSchema: OutputSchema = { fields: upsertResultFields };++export const flowiseRefreshDocumentStoreOutputSchema: OutputSchema = {+ itemLabel: 'Loader {docId}',+ fields: [{ key: 'results', label: 'Loader Results', value: '', listItems: refreshResultFields }],+};++export const flowiseQueryDocumentStoreOutputSchema: OutputSchema = {+ fields: [+ {+ key: 'docs',+ label: 'Matching Chunks',+ labelKey: 'chunkNo',+ listItems: [+ { key: 'id', label: 'Chunk ID' },+ { key: 'chunkNo', label: 'Chunk Number', format: 'number' },+ ...documentFields,+ ],+ },+ { key: 'timeTaken', label: 'Time Taken (ms)', format: 'number' },+ ],+};++export const flowiseListChatMessagesOutputSchema: OutputSchema = {+ fields: [+ {+ key: 'messages',+ label: 'Messages',+ labelKey: 'role',+ listItems: [+ { key: 'id', label: 'Message ID' },+ { key: 'role', label: 'Role' },+ { key: 'content', label: 'Content' },+ { key: 'chatId', label: 'Chat ID' },+ { key: 'sessionId', label: 'Session ID' },+ { key: 'chatType', label: 'Chat Type' },+ { key: 'chatflowid', label: 'Chatflow ID' },+ { key: 'memoryType', label: 'Memory Type' },+ { key: 'executionId', label: 'Execution ID' },+ { key: 'sourceDocuments', label: 'Source Documents (JSON)' },+ { key: 'usedTools', label: 'Used Tools (JSON)' },+ { key: 'fileAnnotations', label: 'File Annotations (JSON)' },+ { key: 'agentReasoning', label: 'Agent Reasoning (JSON)' },+ { key: 'reasonContent', label: 'Reasoning' },+ { key: 'fileUploads', label: 'File Uploads (JSON)' },+ { key: 'artifacts', label: 'Artifacts (JSON)' },+ { key: 'action', label: 'Action (JSON)' },+ { key: 'followUpPrompts', label: 'Follow-Up Prompts (JSON)' },+ { key: 'execution', label: 'Execution' },+ { key: 'leadEmail', label: 'Lead Email', format: 'email' },+ { key: 'feedback', label: 'Feedback', children: feedbackFields },+ { key: 'createdDate', label: 'Created Date', format: 'datetime' },+ ],+ },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseFeedbackOutputSchema: OutputSchema = { fields: feedbackFields };++export const flowiseListFeedbackOutputSchema: OutputSchema = {+ fields: [+ { key: 'feedback', label: 'Feedback', labelKey: 'rating', listItems: feedbackFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseUpdateFeedbackOutputSchema: OutputSchema = {+ fields: [{ key: 'status', label: 'Status' }],+};++export const flowiseLeadOutputSchema: OutputSchema = { fields: leadFields };++export const flowiseListLeadsOutputSchema: OutputSchema = {+ fields: [+ { key: 'leads', label: 'Leads', labelKey: 'name', listItems: leadFields },+ { key: 'count', label: 'Count', format: 'number' },+ ],+};++export const flowiseCreateAttachmentsOutputSchema: OutputSchema = {+ itemLabel: '{name}',+ fields: [+ {+ key: 'attachments',+ label: 'Attachments',+ value: '',+ listItems: [+ { key: 'name', label: 'File Name' },+ { key: 'mimeType', label: 'MIME Type' },+ { key: 'size', label: 'Size', format: 'filesize' },+ { key: 'content', label: 'Content' },+ ],+ },+ ],+};++export const makePredictionOutputSchema: OutputSchema = {+ fields: [+ { key: 'text', label: 'Answer' },+ { key: 'question', label: 'Question' },+ { key: 'chatId', label: 'Chat ID' },+ { key: 'chatMessageId', label: 'Message ID' },+ { key: 'sessionId', label: 'Session ID' },+ { key: 'memoryType', label: 'Memory Type' },+ { key: 'isStreamValid', label: 'Streaming Available', format: 'boolean' },+ ],+};