diff --git a/README.md b/README.md index 3baabbc..02177e6 100644 --- a/README.md +++ b/README.md @@ -24,32 +24,132 @@ +--- +## Xircuits Component Library for Slack + +This library provides a simple way to create and manage custom Slack components bots in your workspace. In this README, you'll find the steps to set up a Slack application and start using the xai-slack library. -Welcome to the xai-slack component library for building Slack bots! This library provides a simple way to create and manage custom Slack components bots in your workspace. In this README, you'll find the steps to set up a Slack application and start using the xai-slack library. ## Table of Contents -- [Table of Contents](#table-of-contents) +- [Preview](#preview) - [Prerequisites](#prerequisites) -- [Setting Up a Slack Application](#setting-up-a-slack-application) - - [Create a Slack App](#create-a-slack-app) - - [Set up Your App](#set-up-your-app) - - [Invite the Bot to a Channel](#invite-the-bot-to-a-channel) -- [Installation](#installation) -- [Getting Started with Xai-Slack](#getting-started-with-xai-slack) +- [Main Xircuits Components](#main-xircuits-components) - [Try the Examples](#try-the-examples) - - [Message Listener](#message-listener) - - [Image Classifier](#image-classifier) - - [OpenAI Image Generation](#openai-image-generation) +- [Installation](#installation) + +## Preview + +### Image Prediction Example + +![image_prediction](https://github.com/user-attachments/assets/528d4197-e50a-4a54-b47b-ba4e74c2327f) + +### Image Prediction Result + +![image_prediction_result](https://github.com/user-attachments/assets/f218f435-48f3-4414-9065-9ec8bad9678c) + +### MSG Trigger Example + +![msg_trigger](https://github.com/user-attachments/assets/d5053167-d07a-431e-a9db-d6f77d0de8b0) + +### MSG Trigger Result + +msg_trigger_result + +### Slack OpenAI Example + +![slack_openai](https://github.com/user-attachments/assets/e5791634-7c8e-4a8c-8a29-eb7d709a257d) + +### Slack OpenAI Result + +![slack_openai_result](https://github.com/user-attachments/assets/3d42ac46-9493-4e99-9d0a-ce57928c4271) ## Prerequisites Before you begin, you will need the following: 1. A Slack workspace. -2. Python3.8+. +2. Python3.9+. 3. Xircuits. +## Main Xircuits Components + +### SlackClient Component: + +Initializes a Slack WebClient using a provided bot token or environment variable. The created client is added to the context for further use by other components. + +SlackClient + +### SlackImageMessageListener Component: + +Monitors Slack messages for image attachments and triggers a specified component when such a message is detected. Downloads and processes the attached image. + +SlackImageMessageListener + +### SlackApp Component: + +Creates a Slack Bolt `App` instance for managing Slack events and interactions. The app is added to the context for other components to utilize. + +### SlackDeployBot Component: + +Starts a Socket Mode connection for the Slack app. Can run the connection on a separate thread if required. + +### SlackMessageListener Component: + +Listens for Slack messages or app mentions and triggers a specified event-handling component. Supports filtering based on app mentions. + +### RespondToTrigger Component: + +Sends a predefined response to messages containing a specified trigger text. Can reply in threads if enabled. + +### RespondToTriggerWithImages Component: + +Replies with multiple images to a message containing a specified trigger. Supports optional titles for the images. + +### RetrieveQueryImage Component: + +Extracts an image from a Slack thread based on a file name mentioned in curly braces and applies a mask (e.g., top, bottom, left, right) if specified. + +### ThreadTriggers Component: + +Detects specific triggers in Slack messages or replies and executes corresponding branches. Optionally filters mentions, tags, and triggers from the text. + +## Try the Examples + +We have provided several example workflows to help you get started with the xai-slack component library. Give them a try and see how you can create custom Slack components for your workspace. + +### Message Listener + +Check out the `msg_trigger.xircuits` workflow. This example listens for keywords in conversations and responds when a trigger message is detected. + +### Image Classifier + +Explore the `image_prediction.xircuits` workflow. In this example, the bot watches for attached images in conversations and responds with the predicted class when a trigger message is detected. + +### OpenAI Image Generation + +Take a look at the `slack_openai.xircuits` workflow. This example leverages components from the [OpenAI Component Library](https://github.com/XpressAI/xai-openai). The bot enables each Slack thread to have unique and contextual image creation and editing using the OpenAI models. + +These examples are designed to help you understand how to use the xai-slack component library effectively in your Slack workspace. Enjoy creating and customizing your components! + + + +## Installation + +To use this component library, ensure that you have an existing [Xircuits setup](https://xircuits.io/docs/main/Installation). You can then install the Slack library using the [component library interface](https://xircuits.io/docs/component-library/installation#installation-using-the-xircuits-library-interface), or through the CLI using: + +``` +xircuits install slack +``` + +You can also do it manually by cloning and installing it. + +``` +# base Xircuits directory +git clone https://github.com/XpressAI/xai-slack xai_components/xai_slack +pip install -r xai_components/xai_slack/requirements.txt +``` + ## Setting Up a Slack Application ### Create a Slack App @@ -90,40 +190,7 @@ Before you begin, you will need the following: 2. Invite the bot to a channel by sending /invite @YourBotName (replace "YourBotName" with the actual name of your bot) as a message in the channel. -## Installation - -To use this component library, ensure that you have an existing [Xircuits setup](https://xircuits.io/docs/main/Installation). You can then install the Slack library using the [component library interface](https://xircuits.io/docs/component-library/installation#installation-using-the-xircuits-library-interface), or through the CLI using: - -``` -xircuits install slack -``` -You can also do it manually by cloning and installing it. - -``` -# base Xircuits directory -git clone https://github.com/XpressAI/xai-slack xai_components/xai_slack -pip install -r xai_components/xai_slack/requirements.txt -``` -## Getting Started with Xai-Slack - -Now that your Slack app is set up and configured, you can begin using the xai-slack component library to build custom components for your workspace. Please follow the documentation and examples provided in the library to learn how to create, customize, and manage Slack components using xai-slack. - -## Try the Examples - -We have provided several example workflows to help you get started with the xai-slack component library. Give them a try and see how you can create custom Slack components for your workspace. - -### Message Listener - -Check out the `msg_trigger.xircuits` workflow. This example listens for keywords in conversations and responds when a trigger message is detected. - -### Image Classifier - -Explore the `image_prediction.xircuits` workflow. In this example, the bot watches for attached images in conversations and responds with the predicted class when a trigger message is detected. - -### OpenAI Image Generation - -Take a look at the `slack_openai.xircuits` workflow. This example leverages components from the [OpenAI Component Library](https://github.com/XpressAI/xai-openai). The bot enables each Slack thread to have unique and contextual image creation and editing using the OpenAI models. - -These examples are designed to help you understand how to use the xai-slack component library effectively in your Slack workspace. Enjoy creating and customizing your components! +--- +Now that your Slack app is set up and configured, you can begin using the xai-slack component library to build custom components for your workspace. Please follow the documentation and examples provided in the library to learn how to create, customize, and manage Slack components using xai-slack. \ No newline at end of file diff --git a/examples/image_prediction.xircuits b/examples/image_prediction.xircuits index 95fe4f0..ba63ab3 100644 --- a/examples/image_prediction.xircuits +++ b/examples/image_prediction.xircuits @@ -1,12 +1,12 @@ { "id": "e2585e68-19fc-407e-94ad-fce95267d45a", - "offsetX": -375.1955994316105, - "offsetY": 203.71096124420802, + "offsetX": -309.1955994316105, + "offsetY": 178.71096124420802, "zoom": 73.02777620794339, "gridSize": 0, "layers": [ { - "id": "775c65cd-2f64-4e3c-badf-1c9d559ac208", + "id": "30cc7c85-7952-4b2d-83aa-9573dcce38d9", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -23,13 +23,13 @@ { "id": "56e8900d-9d50-4793-9de4-e39cb892eed7", "type": "point", - "x": 1740.9750641682654, + "x": 1740.9749805902634, "y": 159.41250287621628 }, { "id": "49d2231e-58af-473d-85a6-030c4f0ae865", "type": "point", - "x": 1852.9751029787258, + "x": 1852.9750194007233, "y": 301.6125333465892 } ], @@ -51,14 +51,14 @@ { "id": "5d1e5015-b2b5-405e-85ee-e1f93a3496cd", "type": "point", - "x": 1728.825062308655, + "x": 1728.8249787306531, "y": 413.4125366976847 }, { "id": "1de9452c-44e1-4030-a22e-efcde48e9aee", "type": "point", - "x": 1852.9751029787258, - "y": 344.8124648689267 + "x": 1852.9750194007233, + "y": 344.8125066579277 } ], "labels": [], @@ -79,13 +79,13 @@ { "id": "7a438c54-449e-4951-a2da-fc43064cb1a0", "type": "point", - "x": 1740.9750641682654, + "x": 1740.9749805902634, "y": 181.012493776081 }, { "id": "a3413b48-af85-4df3-bdda-e5b55b7ecdf2", "type": "point", - "x": 1852.9751029787258, + "x": 1852.9750194007233, "y": 366.41248058101075 } ], @@ -107,13 +107,13 @@ { "id": "48f73812-97aa-4ded-9d40-14068939a94a", "type": "point", - "x": 1733.887549045, + "x": 1733.887632623002, "y": 475.8875443734472 }, { "id": "59783be2-044a-47ee-8d07-86ec3570ed0a", "type": "point", - "x": 1852.9751029787258, + "x": 1852.9750194007233, "y": 388.0125465704866 } ], @@ -135,14 +135,14 @@ { "id": "c9a05660-40d7-4f0a-81f5-f2c2d29e66e4", "type": "point", - "x": 1670.3375108302916, - "y": -41.23750618995511 + "x": 1696.3624469789552, + "y": -50.824989531868354 }, { "id": "c82e4a9b-00e8-4647-89fa-ed4f29b2521b", "type": "point", - "x": 1889.8375816682378, - "y": -37.999966021492455 + "x": 1887.1001513691635, + "y": -51.69998852916879 } ], "labels": [], @@ -163,14 +163,14 @@ { "id": "85048840-280d-4f54-91f7-5ca4d10030ad", "type": "point", - "x": 696.3374952237963, - "y": -71.14998952303335 + "x": 434.7999629693187, + "y": -47.87499947924131 }, { "id": "52081708-c8ee-4b1e-9f0a-729f914ffa35", "type": "point", - "x": 737.5124904256064, - "y": -44.34999734361699 + "x": 608.7999769044676, + "y": -48.4624947203791 } ], "labels": [], @@ -191,14 +191,14 @@ { "id": "fc643e47-c287-41ba-884b-c40e41b448dc", "type": "point", - "x": 867.6124738693376, - "y": -44.34999734361699 + "x": 738.8999603481988, + "y": -48.4624947203791 }, { "id": "275237bf-b260-4ed4-badd-66e339fcedf2", "type": "point", - "x": 944.8000182462365, - "y": -43.374992696267356 + "x": 833.8749596973308, + "y": -48.849995638200134 } ], "labels": [], @@ -219,13 +219,13 @@ { "id": "9360bdad-b81b-45fe-9269-defa323fabdd", "type": "point", - "x": 1359.887523918288, - "y": -21.93748592065587 + "x": 1277.724998973124, + "y": -27.4124927803075 }, { "id": "52ecedbd-92e2-4713-8b7e-f2332b5d592b", "type": "point", - "x": 1525.237574424982, + "x": 1525.23749084698, "y": 159.41250287621628 } ], @@ -247,13 +247,13 @@ { "id": "5622ac80-90f0-4eca-85e6-52d71a096cc0", "type": "point", - "x": 1359.887523918288, - "y": 42.86250310276665 + "x": 1277.724998973124, + "y": 37.38751713761552 }, { "id": "e94efcfa-fde5-42c0-9cba-c9cf3ea05c60", "type": "point", - "x": 1525.237574424982, + "x": 1525.23749084698, "y": 181.012493776081 } ], @@ -275,14 +275,14 @@ { "id": "71088ac3-ce1f-46b6-8d70-98537dca3c58", "type": "point", - "x": 1359.887523918288, - "y": -0.33750350918202976 + "x": 1277.724998973124, + "y": -5.812489474333159 }, { "id": "c3c4ea76-83e3-4572-a525-97bcc3b17478", "type": "point", - "x": 1431.569, - "y": 4.674 + "x": 1437.0463679382076, + "y": -4.911393891863566 }, { "id": "92a756c7-4b8e-4492-ac68-73f6a83bfd32", @@ -293,8 +293,8 @@ { "id": "e9b741b1-c5be-4a1d-89ba-da11cce5b014", "type": "point", - "x": 1852.9751029787258, - "y": 323.21256603545487 + "x": 1852.9750194007233, + "y": 323.2125242464539 } ], "labels": [], @@ -315,14 +315,14 @@ { "id": "f0c39bdc-45fa-4f52-bb3f-ce23625bd593", "type": "point", - "x": 1359.887523918288, - "y": -43.537489226630214 + "x": 1277.724998973124, + "y": -49.01249608628183 }, { "id": "ea261686-16bf-4456-bae2-aed906afefb6", "type": "point", - "x": 1537.1750204487585, - "y": -41.23750618995511 + "x": 1563.199956597422, + "y": -50.824989531868354 } ], "labels": [], @@ -343,14 +343,14 @@ { "id": "3f61de10-4792-46ac-8343-512969d147d4", "type": "point", - "x": 1074.8999932015768, - "y": -43.374992696267356 + "x": 963.974984930063, + "y": -48.849995638200134 }, { "id": "80630b32-1e8b-43f8-b04b-d05039d53f5b", "type": "point", - "x": 1160.2250261639197, - "y": -43.537489226630214 + "x": 1078.0624679181458, + "y": -49.01249608628183 } ], "labels": [], @@ -371,14 +371,14 @@ { "id": "44b0c573-523c-49c0-8668-836c8457920c", "type": "point", - "x": 1470.2624720581161, + "x": 1470.2625556361181, "y": -170.90000058228628 }, { "id": "52d9212c-bdda-4ed5-9a12-6b82112d02a4", "type": "point", - "x": 1537.1750204487585, - "y": -19.637502883980776 + "x": 1563.199956597422, + "y": -29.225007120394512 } ], "labels": [], @@ -387,26 +387,26 @@ "curvyness": 50, "selectedColor": "rgb(0,192,255)" }, - "50592fd4-cb0b-4444-ad2a-e688063bd949": { - "id": "50592fd4-cb0b-4444-ad2a-e688063bd949", + "907c6cdb-0c44-4f05-8e70-19aa66788b0d": { + "id": "907c6cdb-0c44-4f05-8e70-19aa66788b0d", "type": "triangle-link", "selected": false, - "source": "204d570a-0aa6-42f7-b0a5-2c1a47942253", - "sourcePort": "c7bd2de2-5358-4888-8806-9d578f8f16e6", + "source": "6040c1e7-2a2a-4c2e-b260-529b8b0e2ffa", + "sourcePort": "0aa3cfe2-0446-48e5-a010-932cde2805ae", "target": "69e61c6a-1e61-4824-8692-114515277e0b", "targetPort": "f05acf74-83e5-45cb-a11e-67893feeccf8", "points": [ { - "id": "effa8c96-fc3b-4e8c-a1cc-ae0f83f2a532", + "id": "462fccf8-4cbb-4e37-a4eb-8ba4d647cc0c", "type": "point", - "x": 738.7249982894301, - "y": 107.06252743892682 + "x": 581.2501268089433, + "y": 107.06816895406095 }, { - "id": "b342b8cb-1df3-4102-9acb-4bdaf749edf3", + "id": "7593cc66-f988-450f-9b45-e8275e19c39b", "type": "point", - "x": 737.5124904256064, - "y": -22.750006443752326 + "x": 608.7999769044676, + "y": -26.862503820514434 } ], "labels": [], @@ -415,54 +415,26 @@ "curvyness": 50, "selectedColor": "rgb(0,192,255)" }, - "b1b47b32-a95b-415d-b672-13ade76630a8": { - "id": "b1b47b32-a95b-415d-b672-13ade76630a8", + "f696bd15-e6e0-43df-b6f1-ae862d2edb0e": { + "id": "f696bd15-e6e0-43df-b6f1-ae862d2edb0e", "type": "triangle-link", "selected": false, - "source": "204d570a-0aa6-42f7-b0a5-2c1a47942253", - "sourcePort": "c7bd2de2-5358-4888-8806-9d578f8f16e6", + "source": "6040c1e7-2a2a-4c2e-b260-529b8b0e2ffa", + "sourcePort": "0aa3cfe2-0446-48e5-a010-932cde2805ae", "target": "975fbb6d-5851-4e49-ae73-19717dc162a7", "targetPort": "efc72351-947a-4e77-84ff-6a453f1ab681", "points": [ { - "id": "01b654d3-83ae-47d0-8aea-38b459df5c7e", + "id": "45944c8a-67ea-4e5c-96f4-c352609f0f6b", "type": "point", - "x": 738.7249982894301, - "y": 107.06252743892682 + "x": 581.2501268089433, + "y": 107.06816895406095 }, { - "id": "a32c0492-5c88-4e3a-83fb-80f991daaf57", + "id": "7734cb59-fb03-43f5-a4bb-910d1a72da7e", "type": "point", - "x": 944.8000182462365, - "y": -21.774968495792518 - } - ], - "labels": [], - "width": 3, - "color": "gray", - "curvyness": 50, - "selectedColor": "rgb(0,192,255)" - }, - "9f95757f-bf21-4843-89c3-875ae8f70e56": { - "id": "9f95757f-bf21-4843-89c3-875ae8f70e56", - "type": "triangle-link", - "selected": false, - "source": "204d570a-0aa6-42f7-b0a5-2c1a47942253", - "sourcePort": "c7bd2de2-5358-4888-8806-9d578f8f16e6", - "target": "283a6723-de66-4389-bfab-ebeb74f93202", - "targetPort": "373e91fa-0941-4588-8ddd-4fc51ac16d5f", - "points": [ - { - "id": "6f439632-1337-42f8-bfd2-8e26dac8d39e", - "type": "point", - "x": 738.7249982894301, - "y": 107.06252743892682 - }, - { - "id": "4ed35d2f-3a28-478a-922d-b34623994c80", - "type": "point", - "x": 1160.2250261639197, - "y": -21.93748592065587 + "x": 833.8749596973308, + "y": -27.24997535544414 } ], "labels": [], @@ -474,7 +446,7 @@ } }, { - "id": "5d2a089b-61ed-494f-a917-aab96933a71f", + "id": "da1e8a5c-2c11-444b-a64d-d14a5804762f", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -487,15 +459,15 @@ "type": "Start", "borderColor": "rgb(0,192,255)" }, - "x": 628.5946320617923, - "y": -108.26015572193488, + "x": 367.0503130123721, + "y": -84.98134198455193, "ports": [ { "id": "dd418314-772c-4570-af4e-6504e5ebf06e", "type": "default", "extras": {}, - "x": 686.0375094149455, - "y": -81.44999230866583, + "x": 424.4999601836862, + "y": -58.17500226487378, "name": "out-0", "alignment": "right", "parentNode": "a82ba3ec-c7e4-43e9-a4ae-2e510eb1c8fe", @@ -531,7 +503,7 @@ "id": "3e7863db-5e4e-4799-bb30-504890e0bdb4", "type": "default", "extras": {}, - "x": 1723.5875299355391, + "x": 1723.587613513541, "y": 465.5875252639862, "name": "out-0", "alignment": "right", @@ -568,7 +540,7 @@ "id": "2f590c84-0720-4029-9565-584a341d3f03", "type": "default", "extras": {}, - "x": 1718.525043199194, + "x": 1718.524959621192, "y": 403.1125508888339, "name": "out-0", "alignment": "right", @@ -593,7 +565,7 @@ "45270b19-f43f-440c-9139-61e53ca50851": { "id": "45270b19-f43f-440c-9139-61e53ca50851", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "comment", "commentInput": "Your Slack message should:\n 1 - Mention the bot in the message.\n 2 - Include an image.\n 3 - include msg_trigger \"predict\" in the message ", @@ -623,7 +595,7 @@ "id": "9d28d6f6-62ee-48e1-b571-86975076d100", "type": "default", "extras": {}, - "x": 1459.9624529486553, + "x": 1459.9625365266572, "y": -181.20000336791875, "name": "parameter-out-0", "alignment": "right", @@ -645,61 +617,22 @@ "9d28d6f6-62ee-48e1-b571-86975076d100" ] }, - "204d570a-0aa6-42f7-b0a5-2c1a47942253": { - "id": "204d570a-0aa6-42f7-b0a5-2c1a47942253", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string", - "borderColor": "rgb(0,192,255)" - }, - "x": 554.0297327088622, - "y": 72.97091808472132, - "ports": [ - { - "id": "c7bd2de2-5358-4888-8806-9d578f8f16e6", - "type": "default", - "extras": {}, - "x": 728.4250124805793, - "y": 96.76252465329436, - "name": "parameter-out-0", - "alignment": "right", - "parentNode": "204d570a-0aa6-42f7-b0a5-2c1a47942253", - "links": [ - "50592fd4-cb0b-4444-ad2a-e688063bd949", - "b1b47b32-a95b-415d-b672-13ade76630a8", - "9f95757f-bf21-4843-89c3-875ae8f70e56" - ], - "in": false, - "label": "▶", - "varName": "▶", - "portType": "", - "dataType": "string" - } - ], - "name": "Argument (string): slack_bot_token", - "color": "lightpink", - "portsInOrder": [], - "portsOutOrder": [ - "c7bd2de2-5358-4888-8806-9d578f8f16e6" - ] - }, "c4f23763-4ea2-44bd-b553-fec8a804848e": { "id": "c4f23763-4ea2-44bd-b553-fec8a804848e", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "Finish" }, - "x": 1878.746, - "y": -75.11, + "x": 1876.0073160308962, + "y": -88.80341984551939, "ports": [ { "id": "d1e6c560-bc1d-4ba2-b107-802272034d5e", "type": "default", "extras": {}, - "x": 1879.5375625587767, - "y": -48.29996880712492, + "x": 1876.8001322597024, + "y": -61.99999131480126, "name": "in-0", "alignment": "left", "parentNode": "c4f23763-4ea2-44bd-b553-fec8a804848e", @@ -716,8 +649,8 @@ "id": "00ce21f2-1519-412e-91f2-f2e00331bf71", "type": "default", "extras": {}, - "x": 1879.5375625587767, - "y": -26.699986395651077, + "x": 1876.8001322597024, + "y": -40.39998800882692, "name": "parameter-dynalist-outputs", "alignment": "left", "parentNode": "c4f23763-4ea2-44bd-b553-fec8a804848e", @@ -745,7 +678,7 @@ "418c213e-8117-4063-a41c-b39694936faa": { "id": "418c213e-8117-4063-a41c-b39694936faa", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/mobile_net.py", @@ -755,7 +688,9 @@ "lineno": 12, "end_lineno": 57 } - ] + ], + "sourceBranchId": "283a6723-de66-4389-bfab-ebeb74f93202", + "portId": "0e46e68d-48b0-4c46-8a49-8afc039dec18" }, "x": 1514.138, "y": 122.318, @@ -764,7 +699,7 @@ "id": "f2eb6c94-5a8e-4943-96a2-a18188c9244e", "type": "default", "extras": {}, - "x": 1514.9375553155212, + "x": 1514.9374717375192, "y": 149.1124837667553, "name": "in-0", "alignment": "left", @@ -782,7 +717,7 @@ "id": "a316bd62-8217-4c9b-8320-76304d494bff", "type": "default", "extras": {}, - "x": 1514.9375553155212, + "x": 1514.9374717375192, "y": 170.71250796723015, "name": "parameter-bytes-image_data", "alignment": "left", @@ -800,7 +735,7 @@ "id": "7191a8b1-9575-4146-bd53-8e092b12ecf4", "type": "default", "extras": {}, - "x": 1730.6751116600249, + "x": 1730.675028082023, "y": 149.1124837667553, "name": "out-0", "alignment": "right", @@ -818,7 +753,7 @@ "id": "e5677640-d974-437a-8e79-e26e6b62c4bc", "type": "default", "extras": {}, - "x": 1730.6751116600249, + "x": 1730.675028082023, "y": 170.71250796723015, "name": "parameter-out-string-prediction", "alignment": "right", @@ -847,7 +782,7 @@ "b4b553eb-5034-4dc4-9cf9-4984dfb5316e": { "id": "b4b553eb-5034-4dc4-9cf9-4984dfb5316e", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -857,7 +792,8 @@ "lineno": 189, "end_lineno": 223 } - ] + ], + "nextNode": "None" }, "x": 1841.886, "y": 264.516, @@ -866,7 +802,7 @@ "id": "7d580ff3-a4f1-4ea9-80ba-e0d8676d22db", "type": "default", "extras": {}, - "x": 1842.675150470485, + "x": 1842.6750668924828, "y": 291.31251423712825, "name": "in-0", "alignment": "left", @@ -884,8 +820,8 @@ "id": "27efc6a3-65dd-4025-9dfd-f55c43f1abb4", "type": "default", "extras": {}, - "x": 1842.675150470485, - "y": 312.91258022660406, + "x": 1842.6750668924828, + "y": 312.9125384376031, "name": "parameter-dict-event", "alignment": "left", "parentNode": "b4b553eb-5034-4dc4-9cf9-4984dfb5316e", @@ -902,8 +838,8 @@ "id": "fca35d45-f664-47a0-8c57-6117397a7824", "type": "default", "extras": {}, - "x": 1842.675150470485, - "y": 334.5124790600759, + "x": 1842.6750668924828, + "y": 334.5125208490769, "name": "parameter-string-msg_trigger", "alignment": "left", "parentNode": "b4b553eb-5034-4dc4-9cf9-4984dfb5316e", @@ -920,7 +856,7 @@ "id": "3af42c28-7269-4ce7-93d9-62116069b0e8", "type": "default", "extras": {}, - "x": 1842.675150470485, + "x": 1842.6750668924828, "y": 356.11246147154975, "name": "parameter-string-msg_response", "alignment": "left", @@ -938,7 +874,7 @@ "id": "4ffac317-f951-43f3-a46d-52b3ac8449aa", "type": "default", "extras": {}, - "x": 1842.675150470485, + "x": 1842.6750668924828, "y": 377.7125274610256, "name": "parameter-boolean-in_thread", "alignment": "left", @@ -956,7 +892,7 @@ "id": "21ba6397-5220-4b65-90ec-84353e96d364", "type": "default", "extras": {}, - "x": 1987.5750011390378, + "x": 1987.5750847170398, "y": 291.31251423712825, "name": "out-0", "alignment": "right", @@ -985,7 +921,7 @@ "975fbb6d-5851-4e49-ae73-19717dc162a7": { "id": "975fbb6d-5851-4e49-ae73-19717dc162a7", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -997,15 +933,15 @@ } ] }, - "x": 933.701, - "y": -80.476, + "x": 822.7842992512931, + "y": -85.95336793820775, "ports": [ { "id": "9bf10439-121e-49da-98e0-17cc2fe5f4cc", "type": "default", "extras": {}, - "x": 934.5000324373857, - "y": -53.67499548189982, + "x": 823.57497388848, + "y": -59.14998144705095, "name": "in-0", "alignment": "left", "parentNode": "975fbb6d-5851-4e49-ae73-19717dc162a7", @@ -1022,13 +958,13 @@ "id": "efc72351-947a-4e77-84ff-6a453f1ab681", "type": "default", "extras": {}, - "x": 934.5000324373857, - "y": -32.074971281424986, + "x": 823.57497388848, + "y": -37.54997814107661, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "975fbb6d-5851-4e49-ae73-19717dc162a7", "links": [ - "b1b47b32-a95b-415d-b672-13ade76630a8" + "f696bd15-e6e0-43df-b6f1-ae862d2edb0e" ], "in": true, "label": "slack_bot_token", @@ -1040,8 +976,8 @@ "id": "97cf176f-74fa-4f3b-ba8d-99fea2074dc9", "type": "default", "extras": {}, - "x": 1064.5999740921159, - "y": -53.67499548189982, + "x": 953.6749991212122, + "y": -59.14998144705095, "name": "out-0", "alignment": "right", "parentNode": "975fbb6d-5851-4e49-ae73-19717dc162a7", @@ -1068,7 +1004,7 @@ "a6db3eb0-f0b4-49d4-8906-281652dc7382": { "id": "a6db3eb0-f0b4-49d4-8906-281652dc7382", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -1078,17 +1014,18 @@ "lineno": 53, "end_lineno": 82 } - ] + ], + "nextNode": "None" }, - "x": 1526.083, - "y": -78.345, + "x": 1552.1004977064867, + "y": -87.93039389186356, "ports": [ { "id": "177ca1e2-109e-4606-8cc3-f48f355f8c81", "type": "default", "extras": {}, - "x": 1526.8750013392976, - "y": -51.537508975587585, + "x": 1552.899937487961, + "y": -61.12499231750082, "name": "in-0", "alignment": "left", "parentNode": "a6db3eb0-f0b4-49d4-8906-281652dc7382", @@ -1105,8 +1042,8 @@ "id": "aa2baec8-3472-4ea1-8b21-b13e6f067504", "type": "default", "extras": {}, - "x": 1526.8750013392976, - "y": -29.937505669613245, + "x": 1552.899937487961, + "y": -39.52500990602698, "name": "parameter-secret-slack_app_token", "alignment": "left", "parentNode": "a6db3eb0-f0b4-49d4-8906-281652dc7382", @@ -1123,8 +1060,8 @@ "id": "cca704e3-ba25-40fa-b90a-b1b375dd47c6", "type": "default", "extras": {}, - "x": 1526.8750013392976, - "y": -8.337481469138408, + "x": 1552.899937487961, + "y": -17.925006600052637, "name": "parameter-boolean-thread", "alignment": "left", "parentNode": "a6db3eb0-f0b4-49d4-8906-281652dc7382", @@ -1139,8 +1076,8 @@ "id": "402155c1-def4-4b5d-92fa-2fe81f5d5d10", "type": "default", "extras": {}, - "x": 1660.0374917208305, - "y": -51.537508975587585, + "x": 1686.062427869494, + "y": -61.12499231750082, "name": "out-0", "alignment": "right", "parentNode": "a6db3eb0-f0b4-49d4-8906-281652dc7382", @@ -1168,7 +1105,7 @@ "69e61c6a-1e61-4824-8692-114515277e0b": { "id": "69e61c6a-1e61-4824-8692-114515277e0b", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -1180,15 +1117,15 @@ } ] }, - "x": 726.424, - "y": -81.459, + "x": 597.7058534521178, + "y": -85.56702595365581, "ports": [ { "id": "9bf941f0-bf62-458c-a2fa-557e2e59eb79", "type": "default", "extras": {}, - "x": 727.2125046167556, - "y": -54.650016453077974, + "x": 598.4999577950066, + "y": -58.76251382984008, "name": "in-0", "alignment": "left", "parentNode": "69e61c6a-1e61-4824-8692-114515277e0b", @@ -1205,13 +1142,13 @@ "id": "f05acf74-83e5-45cb-a11e-67893feeccf8", "type": "default", "extras": {}, - "x": 727.2125046167556, - "y": -33.04999225260314, + "x": 598.4999577950066, + "y": -37.16248962936525, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "69e61c6a-1e61-4824-8692-114515277e0b", "links": [ - "50592fd4-cb0b-4444-ad2a-e688063bd949" + "907c6cdb-0c44-4f05-8e70-19aa66788b0d" ], "in": true, "label": "slack_bot_token", @@ -1223,8 +1160,8 @@ "id": "0b66aadc-4adf-4491-8d7b-96d2c99dc0c4", "type": "default", "extras": {}, - "x": 857.3124880604868, - "y": -54.650016453077974, + "x": 728.5999412387378, + "y": -58.76251382984008, "name": "out-0", "alignment": "right", "parentNode": "69e61c6a-1e61-4824-8692-114515277e0b", @@ -1251,7 +1188,7 @@ "283a6723-de66-4389-bfab-ebeb74f93202": { "id": "283a6723-de66-4389-bfab-ebeb74f93202", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -1261,17 +1198,19 @@ "lineno": 133, "end_lineno": 185 } - ] + ], + "finishNodeId": "a6db3eb0-f0b4-49d4-8906-281652dc7382", + "isBranchNode": true }, - "x": 1149.134, - "y": -80.644, + "x": 1066.9734809268837, + "y": -86.12136793820775, "ports": [ { "id": "4fd4392d-8d11-427f-a0a9-5ef38751e4e4", "type": "default", "extras": {}, - "x": 1149.9250070544588, - "y": -53.83749201226268, + "x": 1067.762482109295, + "y": -59.3124988719143, "name": "in-0", "alignment": "left", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1288,14 +1227,12 @@ "id": "373e91fa-0941-4588-8ddd-4fc51ac16d5f", "type": "default", "extras": {}, - "x": 1149.9250070544588, - "y": -32.23748870628834, + "x": 1067.762482109295, + "y": -37.71249556593997, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", - "links": [ - "9f95757f-bf21-4843-89c3-875ae8f70e56" - ], + "links": [], "in": true, "label": "slack_bot_token", "varName": "slack_bot_token", @@ -1306,8 +1243,8 @@ "id": "68dd3157-b1a5-4b7e-95c1-1fa27f804632", "type": "default", "extras": {}, - "x": 1349.5875048088271, - "y": -53.83749201226268, + "x": 1267.424979863663, + "y": -59.3124988719143, "name": "out-0", "alignment": "right", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1324,8 +1261,8 @@ "id": "0e46e68d-48b0-4c46-8a49-8afc039dec18", "type": "default", "extras": {}, - "x": 1349.5875048088271, - "y": -32.23748870628834, + "x": 1267.424979863663, + "y": -37.71249556593997, "name": "out-flow-on_event", "alignment": "right", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1342,8 +1279,8 @@ "id": "42fed502-8332-4135-8418-27b4e2f8709a", "type": "default", "extras": {}, - "x": 1349.5875048088271, - "y": -10.637506294814498, + "x": 1267.424979863663, + "y": -16.112492259965627, "name": "parameter-out-dict-event", "alignment": "right", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1360,8 +1297,8 @@ "id": "0ebfcbb1-399f-465b-9f1e-55103c0ec27e", "type": "default", "extras": {}, - "x": 1349.5875048088271, - "y": 10.962517905660338, + "x": 1267.424979863663, + "y": 5.487490151508216, "name": "parameter-out-string-message", "alignment": "right", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1376,8 +1313,8 @@ "id": "fa9050b9-2ea7-43d0-acbf-7602abb04d24", "type": "default", "extras": {}, - "x": 1349.5875048088271, - "y": 32.56250031713418, + "x": 1267.424979863663, + "y": 27.08751435198305, "name": "parameter-out-bytes-image", "alignment": "right", "parentNode": "283a6723-de66-4389-bfab-ebeb74f93202", @@ -1404,6 +1341,43 @@ "0ebfcbb1-399f-465b-9f1e-55103c0ec27e", "fa9050b9-2ea7-43d0-acbf-7602abb04d24" ] + }, + "6040c1e7-2a2a-4c2e-b260-529b8b0e2ffa": { + "id": "6040c1e7-2a2a-4c2e-b260-529b8b0e2ffa", + "type": "custom-node", + "selected": true, + "extras": { + "type": "string" + }, + "x": 396.55540448538926, + "y": 72.97091808472132, + "ports": [ + { + "id": "0aa3cfe2-0446-48e5-a010-932cde2805ae", + "type": "default", + "extras": {}, + "x": 570.9501410000933, + "y": 96.76816616842848, + "name": "parameter-out-0", + "alignment": "right", + "parentNode": "6040c1e7-2a2a-4c2e-b260-529b8b0e2ffa", + "links": [ + "907c6cdb-0c44-4f05-8e70-19aa66788b0d", + "f696bd15-e6e0-43df-b6f1-ae862d2edb0e" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "string" + } + ], + "name": "Argument (string): slack_bot_token", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "0aa3cfe2-0446-48e5-a010-932cde2805ae" + ] } } } diff --git a/examples/msg_trigger.xircuits b/examples/msg_trigger.xircuits index 849f73f..51ccad5 100644 --- a/examples/msg_trigger.xircuits +++ b/examples/msg_trigger.xircuits @@ -1,12 +1,12 @@ { "id": "771a46db-5242-416c-a058-de107b22ac08", - "offsetX": 265.8725050760844, - "offsetY": 129.09721185111164, + "offsetX": 312.8725050760844, + "offsetY": 81.09721185111164, "zoom": 78.61111015799757, "gridSize": 0, "layers": [ { - "id": "3caafc59-c099-4db2-b3e9-94166d280f45", + "id": "84213498-9996-4bf2-91b5-08f005254785", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -23,14 +23,14 @@ { "id": "91b295c2-5547-484c-b3c3-307481a61bbc", "type": "point", - "x": 720.3251088344178, - "y": 45.512509830299095 + "x": 1011.6375177133912, + "y": 42.96249763548484 }, { "id": "53242db8-4a64-4a5a-a3cf-0dc1f7f11064", "type": "point", - "x": 846.787545736215, - "y": 44.975014396027206 + "x": 1093.5750909299736, + "y": 43.69999859338309 } ], "labels": [], @@ -51,13 +51,13 @@ { "id": "1be94d30-bf2e-4b8b-a757-58c57fe35d6a", "type": "point", - "x": 497.48752631785345, + "x": 497.48760395974926, "y": 463.9250551908219 }, { "id": "088c6c22-cf58-4b95-a99c-53d855fdb4bc", "type": "point", - "x": 642.6625602724429, + "x": 642.6624826305471, "y": 379.8375147950072 } ], @@ -79,13 +79,13 @@ { "id": "4e651761-2b7b-4270-a6fd-688f67ff7542", "type": "point", - "x": 494.36257952397307, + "x": 494.36250188207725, "y": 519.599992679364 }, { "id": "b4de1291-bc58-450e-a07c-9b9d5e2fccc9", "type": "point", - "x": 642.6625602724429, + "x": 642.6624826305471, "y": 401.43753752451823 } ], @@ -107,8 +107,8 @@ { "id": "6beeadc1-c765-43b6-8b3e-e1bc3beb6aff", "type": "point", - "x": -125.20001956755274, - "y": -26.01249418031793 + "x": -162.08749016579648, + "y": 45.20958148168403 }, { "id": "5f8f8262-8cb7-40cd-80cd-552bd88fb840", @@ -135,14 +135,14 @@ { "id": "9e6e6580-9456-43de-90ad-f2a0cae2bf74", "type": "point", - "x": 51.48755369249925, + "x": 51.487476050603426, "y": 46.31249310385664 }, { "id": "c7101c52-02cd-4245-be86-99131f74cf4e", "type": "point", "x": 129.8249971549417, - "y": 143.50001800611062 + "y": 45.55000237389669 } ], "labels": [], @@ -163,14 +163,14 @@ { "id": "b86696a4-77b1-4716-ad08-7d361e6a371b", "type": "point", - "x": 259.9250490755487, - "y": 143.50001800611062 + "x": 259.9249714336529, + "y": 45.55000237389669 }, { "id": "1efaee79-8922-4397-b04a-8ca71e4d69ff", "type": "point", - "x": 336.30006207917893, - "y": 214.20001378962434 + "x": 357.92496054421713, + "y": 43.73749113698068 } ], "labels": [], @@ -191,14 +191,14 @@ { "id": "349a94c6-5668-4dc1-9c50-b458d7f16628", "type": "point", - "x": 503.3750336358129, - "y": 214.20001378962434 + "x": 525.0000097427469, + "y": 43.73749113698068 }, { "id": "e4f80d4b-8d54-48d7-8552-14152f7ce2f5", "type": "point", - "x": 587.1625960750537, - "y": 45.512509830299095 + "x": 878.4750510539027, + "y": 42.96249763548484 } ], "labels": [], @@ -219,14 +219,14 @@ { "id": "083dcca7-f1fa-4eea-bb44-d78bce2745a0", "type": "point", - "x": 503.3750336358129, - "y": 235.800043798063 + "x": 525.0000097427469, + "y": 65.33749445601765 }, { "id": "ea4e7f50-f0bc-42eb-a199-829d895d1b02", "type": "point", - "x": 642.6625602724429, - "y": 315.03752667467955 + "x": 642.6624826305471, + "y": 315.03750362474176 } ], "labels": [], @@ -247,13 +247,13 @@ { "id": "1fac64b7-8133-4166-baa4-9bd2d31da782", "type": "point", - "x": 503.3750336358129, - "y": 257.40001921454365 + "x": 525.0000097427469, + "y": 86.9375086934462 }, { "id": "ccb676da-6916-44a4-8f10-eb6f3c25c1bb", "type": "point", - "x": 642.6625602724429, + "x": 642.6624826305471, "y": 336.63750209116023 } ], @@ -275,13 +275,13 @@ { "id": "0a37dd11-1bc5-4112-ad6b-fd21302fb2fd", "type": "point", - "x": 503.3750336358129, - "y": 279.000001909952 + "x": 525.0000097427469, + "y": 108.5375035204008 }, { "id": "d10f7f0c-5809-4a1b-b471-33707d0e0d40", "type": "point", - "x": 642.6625602724429, + "x": 642.6624826305471, "y": 358.23750904966107 } ], @@ -303,14 +303,14 @@ { "id": "55247bf4-57f6-4991-9959-6b55557b22a2", "type": "point", - "x": 243.3125257918433, - "y": 337.2375186620393 + "x": 275.1125026745507, + "y": 227.83751799342798 }, { "id": "692cdafe-8c27-4b87-8f11-3c59978180e5", "type": "point", - "x": 336.30006207917893, - "y": 235.800043798063 + "x": 357.92496054421713, + "y": 65.33749445601765 } ], "labels": [], @@ -331,14 +331,14 @@ { "id": "2cc56569-d90a-4269-971b-253ba02ee598", "type": "point", - "x": 399.5750396238758, - "y": -16.899986354170828 + "x": 813.0124669946667, + "y": 147.18752643506576 }, { "id": "60625444-b313-41ef-9c59-dc5788963a44", "type": "point", - "x": 587.1625960750537, - "y": 67.11250465725371 + "x": 878.4750510539027, + "y": 64.5625118729134 } ], "labels": [], @@ -359,14 +359,14 @@ { "id": "76fd1a3e-febe-4a22-8e3f-55244fadcd4a", "type": "point", - "x": -85.57501218562106, - "y": 284.5750236471831 + "x": -102.1124957901733, + "y": 219.7000104055577 }, { "id": "29067323-0724-451e-9cc5-19739c57a02d", "type": "point", "x": -78.61251399911785, - "y": 67.91252675175915 + "y": 67.91250734128519 } ], "labels": [], @@ -387,14 +387,14 @@ { "id": "0be662ac-5575-4f93-8bad-81cf34436026", "type": "point", - "x": -85.57501218562106, - "y": 284.5750236471831 + "x": -102.1124957901733, + "y": 219.7000104055577 }, { "id": "bbd36f31-a341-4517-bb48-8df392730a7d", "type": "point", "x": 129.8249971549417, - "y": 165.09999342259127 + "y": 67.15000569293365 } ], "labels": [], @@ -406,7 +406,7 @@ } }, { - "id": "6a4f2328-f6c5-4c34-a361-579ffdef16a0", + "id": "2ac387bd-b511-4679-bf02-da767e1b96d6", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -414,20 +414,20 @@ "0843c42d-b295-42fd-b30b-ef7f685af61b": { "id": "0843c42d-b295-42fd-b30b-ef7f685af61b", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "Start", "borderColor": "rgb(0,192,255)" }, - "x": -192.958, - "y": -63.117, + "x": -229.84845981123274, + "y": 8.119749980311513, "ports": [ { "id": "c0a14c83-09c1-443d-941f-1ab7a6b59395", "type": "default", "extras": {}, - "x": -135.50002500874734, - "y": -36.31249112943017, + "x": -172.3874956069911, + "y": 34.90958453257179, "name": "out-0", "alignment": "right", "parentNode": "0843c42d-b295-42fd-b30b-ef7f685af61b", @@ -463,7 +463,7 @@ "id": "1d428090-8e87-4cbd-bc65-bbbd516a98e5", "type": "default", "extras": {}, - "x": 487.18755241867905, + "x": 487.18763006057486, "y": 453.62504974962735, "name": "out-0", "alignment": "right", @@ -499,7 +499,7 @@ "id": "8d3ab559-1c8d-4346-823a-08515ca30341", "type": "default", "extras": {}, - "x": 484.06254375391296, + "x": 484.06246611201715, "y": 509.29995690930394, "name": "out-0", "alignment": "right", @@ -529,15 +529,15 @@ "type": "boolean", "attached": false }, - "x": 163.435, - "y": 303.139, + "x": 195.2371205269248, + "y": 193.73970538737876, "ports": [ { "id": "bb953e71-3cf0-4a34-9268-42f20b64e081", "type": "default", "extras": {}, - "x": 233.0125203506487, - "y": 326.9375447628649, + "x": 264.8124669044906, + "y": 217.53751255223338, "name": "out-0", "alignment": "right", "parentNode": "03e8a6a4-02db-469f-b30f-c29271c04b2f", @@ -566,15 +566,15 @@ "type": "string", "borderColor": "rgb(0,192,255)" }, - "x": 211.83709082049916, - "y": -51.00705456330756, + "x": 625.2646576705214, + "y": 113.09188735562432, "ports": [ { "id": "9d28d6f6-62ee-48e1-b571-86975076d100", "type": "default", "extras": {}, - "x": 389.2750657247014, - "y": -27.19999179536542, + "x": 802.7124930954924, + "y": 136.88753676488125, "name": "parameter-out-0", "alignment": "right", "parentNode": "8aacc442-3621-4c39-a5d0-bb5804470044", @@ -603,15 +603,15 @@ "type": "string", "borderColor": "rgb(0,192,255)" }, - "x": -270.2830563676805, - "y": 250.47704803193935, + "x": -286.8201590416814, + "y": 185.6007221570128, "ports": [ { "id": "c7bd2de2-5358-4888-8806-9d578f8f16e6", "type": "default", "extras": {}, - "x": -95.87501762681565, - "y": 274.27498787712295, + "x": -112.41246968934772, + "y": 209.4000207353732, "name": "parameter-out-0", "alignment": "right", "parentNode": "204d570a-0aa6-42f7-b0a5-2c1a47942253", @@ -636,19 +636,19 @@ "c32770f9-93b5-41f3-ad39-fc8370c9359f": { "id": "c32770f9-93b5-41f3-ad39-fc8370c9359f", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "Finish" }, - "x": 835.697, - "y": 7.881, + "x": 1082.4814552889363, + "y": 6.6089151789230085, "ports": [ { "id": "bc5680e0-db56-4e14-b488-0ab4de982d09", "type": "default", "extras": {}, - "x": 836.4875718370405, - "y": 34.67500895483261, + "x": 1083.2750551599136, + "y": 33.3999931521885, "name": "in-0", "alignment": "left", "parentNode": "c32770f9-93b5-41f3-ad39-fc8370c9359f", @@ -665,8 +665,8 @@ "id": "7c481852-d90c-4ed8-b406-0abdfa04d292", "type": "default", "extras": {}, - "x": 836.4875718370405, - "y": 56.275023192261166, + "x": 1083.2750551599136, + "y": 55.00000738961706, "name": "parameter-dynalist-outputs", "alignment": "left", "parentNode": "c32770f9-93b5-41f3-ad39-fc8370c9359f", @@ -694,7 +694,7 @@ "53673ba7-2c9b-4515-9755-8d952d400886": { "id": "53673ba7-2c9b-4515-9755-8d952d400886", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -706,15 +706,15 @@ } ] }, - "x": 576.071, - "y": 8.419, + "x": 867.378424026631, + "y": 5.874830357846017, "ports": [ { "id": "63f0f32d-a2c4-4ffb-a77a-88455db73c84", "type": "default", "extras": {}, - "x": 576.8626221758792, - "y": 35.2125043891045, + "x": 868.1750152838425, + "y": 32.662492194290245, "name": "in-0", "alignment": "left", "parentNode": "53673ba7-2c9b-4515-9755-8d952d400886", @@ -731,8 +731,8 @@ "id": "feb7dbc8-6f0f-42e3-9875-452038242649", "type": "default", "extras": {}, - "x": 576.8626221758792, - "y": 56.81249921605911, + "x": 868.1750152838425, + "y": 54.262506431718805, "name": "parameter-secret-slack_app_token", "alignment": "left", "parentNode": "53673ba7-2c9b-4515-9755-8d952d400886", @@ -749,8 +749,8 @@ "id": "f7b964a4-c20b-4d50-a12d-82ee986054e9", "type": "default", "extras": {}, - "x": 576.8626221758792, - "y": 78.41251345348768, + "x": 868.1750152838425, + "y": 75.8625012586734, "name": "parameter-boolean-thread", "alignment": "left", "parentNode": "53673ba7-2c9b-4515-9755-8d952d400886", @@ -765,8 +765,8 @@ "id": "2e636948-a94c-4826-8ebe-d062acf83b26", "type": "default", "extras": {}, - "x": 710.0250730643577, - "y": 35.2125043891045, + "x": 1001.3375438142168, + "y": 32.662492194290245, "name": "out-0", "alignment": "right", "parentNode": "53673ba7-2c9b-4515-9755-8d952d400886", @@ -794,7 +794,7 @@ "77f49950-e1b7-4739-b307-0cfd1325677d": { "id": "77f49950-e1b7-4739-b307-0cfd1325677d", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -813,8 +813,8 @@ "id": "c5990dcc-eb54-4ecc-aac5-b39cb0f53611", "type": "default", "extras": {}, - "x": 632.3625245023827, - "y": 304.73755277550515, + "x": 632.3624468604869, + "y": 304.73751395455724, "name": "in-0", "alignment": "left", "parentNode": "77f49950-e1b7-4739-b307-0cfd1325677d", @@ -831,7 +831,7 @@ "id": "97ae3e0e-9978-4c4e-ab2f-d055c270b7c4", "type": "default", "extras": {}, - "x": 632.3625245023827, + "x": 632.3624468604869, "y": 326.3375281919858, "name": "parameter-dict-event", "alignment": "left", @@ -849,7 +849,7 @@ "id": "eebf9b2a-9889-4c8b-89bd-108fddab0184", "type": "default", "extras": {}, - "x": 632.3625245023827, + "x": 632.3624468604869, "y": 347.93750360846644, "name": "parameter-string-msg_trigger", "alignment": "left", @@ -867,7 +867,7 @@ "id": "8f9a5d50-3203-4a4d-90f4-099080a4ca10", "type": "default", "extras": {}, - "x": 632.3625245023827, + "x": 632.3624468604869, "y": 369.5374790249471, "name": "parameter-string-msg_response", "alignment": "left", @@ -885,7 +885,7 @@ "id": "beb4981f-1607-46f8-9e12-cfb3476865cc", "type": "default", "extras": {}, - "x": 632.3625245023827, + "x": 632.3624468604869, "y": 391.1375320833236, "name": "parameter-boolean-in_thread", "alignment": "left", @@ -903,8 +903,8 @@ "id": "28f73d23-5867-4ed5-811f-1cf85ae4d40d", "type": "default", "extras": {}, - "x": 777.2624889911001, - "y": 304.73755277550515, + "x": 777.2625666329959, + "y": 304.73751395455724, "name": "out-0", "alignment": "right", "parentNode": "77f49950-e1b7-4739-b307-0cfd1325677d", @@ -932,7 +932,7 @@ "0d58a526-104e-44c0-86c5-55c024f12877": { "id": "0d58a526-104e-44c0-86c5-55c024f12877", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -944,15 +944,15 @@ } ] }, - "x": 325.201, - "y": 177.101, + "x": 346.82644195830886, + "y": 6.641633975683163, "ports": [ { "id": "7d05b08f-9130-49c4-b483-1c380ab1f31a", "type": "default", "extras": {}, - "x": 326.0000263091188, - "y": 203.90002411943985, + "x": 347.62492477415697, + "y": 33.437494187868445, "name": "in-0", "alignment": "left", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -969,8 +969,8 @@ "id": "49a9f660-bef6-4c15-828d-8482b240f409", "type": "default", "extras": {}, - "x": 326.0000263091188, - "y": 225.5000383568684, + "x": 347.62492477415697, + "y": 55.03748901482305, "name": "parameter-boolean-mention_only", "alignment": "left", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -987,8 +987,8 @@ "id": "63360118-7008-4071-b1f6-c12f8b0a41a5", "type": "default", "extras": {}, - "x": 493.0750597366385, - "y": 203.90002411943985, + "x": 514.7000358435724, + "y": 33.437494187868445, "name": "out-0", "alignment": "right", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -1005,8 +1005,8 @@ "id": "62f9a700-e094-4533-9190-67021ba35159", "type": "default", "extras": {}, - "x": 493.0750597366385, - "y": 225.5000383568684, + "x": 514.7000358435724, + "y": 55.03748901482305, "name": "out-flow-on_event", "alignment": "right", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -1023,8 +1023,8 @@ "id": "66941ffd-ad3a-4b1d-a930-77bb011e9fb5", "type": "default", "extras": {}, - "x": 493.0750597366385, - "y": 247.10001377334905, + "x": 514.7000358435724, + "y": 76.6375032522516, "name": "parameter-out-dict-event", "alignment": "right", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -1041,8 +1041,8 @@ "id": "897f4698-1f8f-4c3e-a85e-74379e27452c", "type": "default", "extras": {}, - "x": 493.0750597366385, - "y": 268.7000280107776, + "x": 514.7000358435724, + "y": 98.23749807920622, "name": "parameter-out-string-message", "alignment": "right", "parentNode": "0d58a526-104e-44c0-86c5-55c024f12877", @@ -1072,7 +1072,7 @@ "78b11bb0-6ce7-4a5d-b6db-382deb2ca314": { "id": "78b11bb0-6ce7-4a5d-b6db-382deb2ca314", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -1110,7 +1110,7 @@ "type": "default", "extras": {}, "x": -88.91251944031244, - "y": 57.61252131056456, + "y": 57.61250190009061, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "78b11bb0-6ce7-4a5d-b6db-382deb2ca314", @@ -1127,7 +1127,7 @@ "id": "a47bea3b-ec54-432f-a29a-5f68a17136e7", "type": "default", "extras": {}, - "x": 41.18757979332483, + "x": 41.18750215142901, "y": 36.012487662662046, "name": "out-0", "alignment": "right", @@ -1155,7 +1155,7 @@ "41a0d3cf-901e-443b-82f3-ab3b5e05cc30": { "id": "41a0d3cf-901e-443b-82f3-ab3b5e05cc30", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -1168,14 +1168,14 @@ ] }, "x": 118.735, - "y": 106.402, + "y": 8.451468777071668, "ports": [ { "id": "97f9ef7b-c764-4afd-80f0-88243fde24a3", "type": "default", "extras": {}, "x": 119.52499171374713, - "y": 133.20001256491602, + "y": 35.25000542478445, "name": "in-0", "alignment": "left", "parentNode": "41a0d3cf-901e-443b-82f3-ab3b5e05cc30", @@ -1193,7 +1193,7 @@ "type": "default", "extras": {}, "x": 119.52499171374713, - "y": 154.79998798139667, + "y": 56.850000251739054, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "41a0d3cf-901e-443b-82f3-ab3b5e05cc30", @@ -1210,8 +1210,8 @@ "id": "45fe945e-d72f-4a33-944a-8be2993bb0bd", "type": "default", "extras": {}, - "x": 249.62501330548858, - "y": 133.20001256491602, + "x": 249.62493566359277, + "y": 35.25000542478445, "name": "out-0", "alignment": "right", "parentNode": "41a0d3cf-901e-443b-82f3-ab3b5e05cc30", diff --git a/examples/slack_openai.xircuits b/examples/slack_openai.xircuits index 30dd6bb..d90c167 100644 --- a/examples/slack_openai.xircuits +++ b/examples/slack_openai.xircuits @@ -1,12 +1,12 @@ { "id": "e7e7af0e-d421-44ee-aa43-f9db3e6e3567", - "offsetX": 112.6688609726656, - "offsetY": 299.53332912601235, - "zoom": 75.99999999999979, + "offsetX": 466.9294197620961, + "offsetY": -278.37394681574835, + "zoom": 163.99999999999977, "gridSize": 0, "layers": [ { - "id": "c2faabcd-cff9-45d8-8b18-9d3caeaa9e1e", + "id": "a2ee448f-acda-4f3f-93c4-c8aef67887e5", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -23,14 +23,14 @@ { "id": "fd752227-4d4a-4226-8a6d-45d536cb870e", "type": "point", - "x": 623.2124315270971, - "y": 90.86247792791401 + "x": 21.912503093359177, + "y": 64.5374947386662 }, { "id": "d02611af-4099-4090-94dd-ee6b4dde6aa7", "type": "point", - "x": 629.2125086241365, - "y": -74.8999797941982 + "x": 155.3625076244754, + "y": 23.937491472913116 } ], "labels": [], @@ -51,14 +51,14 @@ { "id": "9f4b6bac-ed0c-4de5-9209-c98724b0423b", "type": "point", - "x": 1196.749980746732, - "y": -236.67500661754363 + "x": 883.5875085176738, + "y": -180.1000062103564 }, { "id": "34f9a737-b500-452f-af68-64fdb8715c19", "type": "point", - "x": 1341.4125529549362, - "y": -350.7125103117771 + "x": 1069.0376204650825, + "y": -344.1375304104239 } ], "labels": [], @@ -79,14 +79,14 @@ { "id": "78fd5c21-c809-4b50-9ef9-7430d68950a0", "type": "point", - "x": 1669.5000647704599, - "y": -47.32497883048513 + "x": 1561.9250814847046, + "y": -0.34999326519017515 }, { "id": "7818922a-96be-4658-82d4-6ba9791d4317", "type": "point", - "x": 1649.800132370911, - "y": -232.76250063951144 + "x": 1258.5874782792205, + "y": -35.075004707737634 } ], "labels": [], @@ -107,14 +107,14 @@ { "id": "ba1def5b-f626-4c05-8af2-0fa5e93971f1", "type": "point", - "x": 2164.525024435057, - "y": 679.7749837804644 + "x": 2136.8874222814793, + "y": 549.5125248286142 }, { "id": "73328e58-d453-489d-be56-a884ca8c18a1", "type": "point", - "x": 2247.687512870501, - "y": 498.65002554136015 + "x": 1624.599977088291, + "y": 156.89999339421814 } ], "labels": [], @@ -129,20 +129,20 @@ "selected": false, "source": "b0d72211-d4ae-405e-8420-001e516717a6", "sourcePort": "d9b71d71-a894-4498-ae11-e59087cf31dd", - "target": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "targetPort": "1ad1a63d-094c-4aed-8415-2ec63555c674", + "target": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "targetPort": "1a255cae-e500-481a-a7b2-3af0a878c8da", "points": [ { "id": "db03ffa9-d056-4ef3-ab0b-441c3867bd6c", "type": "point", - "x": 2058.4500989621947, - "y": -45.49998750390206 + "x": 2058.4501834353805, + "y": -45.500010281052056 }, { "id": "3933abe5-c491-4498-af83-2c303550be97", "type": "point", - "x": 2172.425094324326, - "y": -193.03750003217138 + "x": 1619.100114045227, + "y": 7.599997320564877 } ], "labels": [], @@ -155,22 +155,22 @@ "id": "d89c8790-d070-4615-bbd1-dc71a366a87b", "type": "parameter-link", "selected": false, - "source": "fee87791-0f62-43a9-b135-4ca50231feec", - "sourcePort": "89e4bb0e-58a9-41ea-b506-ef1481d3d559", - "target": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "targetPort": "92d0229b-4384-4c12-bd6b-aa90b7a86c4c", + "source": "e080dea4-522d-4834-8f2c-6089f5fecc99", + "sourcePort": "81b9e2e4-9a9e-476b-9259-49ed6643cecb", + "target": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "targetPort": "b31c3472-5462-4d94-9dab-cc41ba33abd7", "points": [ { "id": "31fd7e06-4223-419f-b291-cdf81bd986d4", "type": "point", - "x": 2041.0625005229278, - "y": -109.04999296494253 + "x": 2041.0625621048882, + "y": -109.0499999235712 }, { "id": "ccc3d51f-a131-4179-9b15-6bb7b25cc4ac", "type": "point", - "x": 2172.425094324326, - "y": -236.23748907495553 + "x": 1619.100114045227, + "y": -34.00001138810992 } ], "labels": [], @@ -185,20 +185,20 @@ "selected": false, "source": "0b6ea3c7-f03b-41f3-835c-c0d791318388", "sourcePort": "b76f8855-374d-4970-a3aa-e01d44efdf2d", - "target": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "targetPort": "488776c9-fcc1-4c1a-85c5-73a1f7932000", + "target": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "targetPort": "2027b57a-4a0e-499e-b113-37c556d36b7a", "points": [ { "id": "10a3a5bd-2b4c-46eb-89fc-3b4e637c10d8", "type": "point", - "x": 1817.2000030928286, - "y": -275.96250160322455 + "x": 1437.9250833136534, + "y": -77.47500718729091 }, { "id": "d9656eba-ee11-4129-bfec-608c0ffd5ac8", "type": "point", - "x": 2172.425094324326, - "y": -279.43749003866867 + "x": 1619.4001097467144, + "y": -76.40001851973304 } ], "labels": [], @@ -213,20 +213,20 @@ "selected": false, "source": "0b6ea3c7-f03b-41f3-835c-c0d791318388", "sourcePort": "6880feeb-8080-43db-a192-873d7e00ce41", - "target": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "targetPort": "5e18541a-5882-415f-beb0-6f33b6bcb115", + "target": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "targetPort": "44ed9353-6e3a-4372-aced-5c0f19580557", "points": [ { "id": "c84ccea1-322b-4fd7-8689-bd4079e61f8c", "type": "point", - "x": 1817.2000030928286, - "y": -254.36250112136804 + "x": 1437.9250833136534, + "y": -55.875011969618676 }, { "id": "d34b7f16-0d8b-4a0e-93dd-bb2ab059cff6", "type": "point", - "x": 2172.425094324326, - "y": -214.63752059138196 + "x": 1619.4001097467144, + "y": -13.200000637176496 } ], "labels": [], @@ -247,14 +247,14 @@ { "id": "6068ee8b-7082-420a-931a-87795fe4d1ed", "type": "point", - "x": 462.43750978360333, - "y": -15.40001834271777 + "x": -0.6999953528495269, + "y": -64.0750107786888 }, { "id": "528b7c72-f197-4b12-86cc-3a737b9c2f00", "type": "point", - "x": 629.2125086241365, - "y": -161.29998172162442 + "x": 155.3625076244754, + "y": -62.46249870191551 } ], "labels": [], @@ -275,14 +275,14 @@ { "id": "9c7c3bc5-4d13-4134-88ef-7ec77d43326d", "type": "point", - "x": -56.224993107537124, - "y": -31.625009990538537 + "x": -487.8124895656754, + "y": -63.21249842279132 }, { "id": "46e3c748-2d25-4043-84ed-16de51908ed0", "type": "point", - "x": 99.82499629162038, - "y": -63.53748236409948 + "x": -347.52497978702434, + "y": -63.53749899964798 } ], "labels": [], @@ -303,14 +303,14 @@ { "id": "cab3e34a-fff8-4055-a551-a9f2127458ec", "type": "point", - "x": 229.9250137639381, - "y": -63.53748236409948 + "x": -217.42498656974198, + "y": -63.53749899964798 }, { "id": "4414b4d6-ec07-46b6-a0a7-bbd6322a7377", "type": "point", - "x": 332.3374603130027, - "y": -15.40001834271777 + "x": -130.79998857013186, + "y": -64.0750107786888 } ], "labels": [], @@ -331,14 +331,14 @@ { "id": "f1e2a596-b4d8-4d22-b921-8d9f18dafbf8", "type": "point", - "x": 2027.9500282899085, - "y": 315.7874607768349 + "x": 1575.9625799734677, + "y": 327.1500027216184 }, { "id": "55b0fd74-bd26-4eb9-bd06-6ea157bd49a2", "type": "point", - "x": 2247.687512870501, - "y": 455.45003273407224 + "x": 1624.8999727897785, + "y": 114.49999672975216 } ], "labels": [], @@ -359,14 +359,14 @@ { "id": "24db698a-e7e8-40ca-83a8-5dfca819666b", "type": "point", - "x": 2027.9500282899085, - "y": 337.38748133604554 + "x": 1575.9625799734677, + "y": 348.74999445023826 }, { "id": "5475badd-5ce7-4c80-be28-09b8c2183cf6", "type": "point", - "x": 2247.687512870501, - "y": 520.2500141022879 + "x": 1624.8999727897785, + "y": 177.69999484101191 } ], "labels": [], @@ -387,14 +387,14 @@ { "id": "2772dd25-5942-4c57-9f18-dca250e02db1", "type": "point", - "x": 1786.224982533618, - "y": 658.8000277197536 + "x": 1786.2249120346737, + "y": 658.800013742248 }, { "id": "2141b009-351d-4fa7-b620-da0d6347f483", "type": "point", - "x": 1860.5500295748589, - "y": 402.1875430136773 + "x": 1396.625034252925, + "y": 412.7499892399202 } ], "labels": [], @@ -415,14 +415,14 @@ { "id": "f2c90a9d-323f-4dc1-84ee-a34ea5036ef6", "type": "point", - "x": 767.4000212226766, - "y": -161.29998172162442 + "x": 293.55003935159186, + "y": -62.46249870191551 }, { "id": "10f63576-ba35-4a22-ba2d-40e3719dd883", "type": "point", - "x": 823.0624938472045, - "y": -40.537508063112575 + "x": 471.7500376954552, + "y": -66.85000765249788 } ], "labels": [], @@ -443,14 +443,14 @@ { "id": "b46a0202-dfd5-47c3-9fd8-118b19a84794", "type": "point", - "x": 732.637447980489, - "y": 358.42504674304564 + "x": 378.6875019675588, + "y": 59.73749257080165 }, { "id": "45753938-50c3-4061-b0e2-684e450ae56f", "type": "point", - "x": 823.0624938472045, - "y": -18.93748750390199 + "x": 471.7500376954552, + "y": -45.25000080465105 } ], "labels": [], @@ -471,14 +471,14 @@ { "id": "01761298-38cc-4a3c-9a75-88b511cb0772", "type": "point", - "x": 990.1375606646393, - "y": -40.537508063112575 + "x": 638.8250541358702, + "y": -66.85000765249788 }, { "id": "6c42901a-47c5-43ea-9207-550758e81982", "type": "point", - "x": 1063.587588933554, - "y": -236.67500661754363 + "x": 750.4249495666447, + "y": -180.1000062103564 } ], "labels": [], @@ -499,14 +499,26 @@ { "id": "2c611b1b-33d7-4ee6-a078-004bfa2f3c5f", "type": "point", - "x": 990.1375606646393, - "y": 2.6625173698757596 + "x": 638.8250541358702, + "y": -23.650003260943897 + }, + { + "id": "fc7da574-a66b-4afa-a53d-af59327a2c59", + "type": "point", + "x": 687.722866174403, + "y": -26.18893983885211 + }, + { + "id": "ee748509-2597-4df7-b98c-9e557aafd105", + "type": "point", + "x": 693.972866174403, + "y": 134.74856016114816 }, { "id": "4ad7336b-7ab4-4fba-a145-62f596472e44", "type": "point", - "x": 2247.687512870501, - "y": 477.05005329328276 + "x": 1624.8999727897785, + "y": 136.09999252893314 } ], "labels": [], @@ -521,20 +533,44 @@ "selected": false, "source": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", "sourcePort": "c6f8e346-f436-413a-bb36-f031355e5816", - "target": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "targetPort": "ed2c9a60-159c-4da1-a397-faa489aef4d2", + "target": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "targetPort": "8c9a4f44-f60b-4021-a066-26d068ef3630", "points": [ { "id": "022e0f09-31a3-4346-82ec-f0b952c1ae28", "type": "point", - "x": 990.1375606646393, - "y": 2.6625173698757596 + "x": 638.8250541358702, + "y": -23.650003260943897 + }, + { + "id": "9ec25427-55c9-4f7d-8b85-54483dc5620d", + "type": "point", + "x": 688.3620707198576, + "y": -24.957879232791676 + }, + { + "id": "1ebe9345-226b-40f5-8172-e7b5da8a63b7", + "type": "point", + "x": 693.6414267804637, + "y": 133.58852228236034 + }, + { + "id": "4f1f1c62-fe90-47a9-868d-657391cfc9cf", + "type": "point", + "x": 1528.4899116289512, + "y": 135.10367379751185 + }, + { + "id": "09651f1d-42f2-4eee-9ae8-1260d7a7b2db", + "type": "point", + "x": 1525.4596085986482, + "y": -52.77511408127663 }, { "id": "02823503-5430-499c-96c4-bb55d4ae0a3b", "type": "point", - "x": 2172.425094324326, - "y": -257.8375096341661 + "x": 1619.4001097467144, + "y": -54.80000004171161 } ], "labels": [], @@ -549,20 +585,20 @@ "selected": false, "source": "619a02fb-8c19-4757-8dc1-e2f88bedf598", "sourcePort": "e85f7aa1-765e-458c-b497-1843d2e80822", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "9fbc7934-0efc-45ac-92fc-add07ef4f7f5", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "2315560f-ac4e-4a25-8d5a-add98feaf704", "points": [ { "id": "aa621290-5db4-4645-b67a-c91bba6fda41", "type": "point", - "x": 923.8000555248364, + "x": 923.7999915282704, "y": 404.13745563703253 }, { "id": "fe44dbae-ffd5-417b-9e24-c5216aec3b94", "type": "point", - "x": 1064.9624861375014, - "y": 226.0875129428198 + "x": 873.3626009449972, + "y": 4.987497246131756 } ], "labels": [], @@ -575,22 +611,28 @@ "id": "d5c2d2fa-b65a-415a-afdd-01ff1c8b329d", "type": "parameter-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "d1cc95ab-bd26-4949-b65a-08342b364d37", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "bbbcd06d-8a0e-417b-9791-ee20ee012422", "target": "0b6ea3c7-f03b-41f3-835c-c0d791318388", "targetPort": "019ffdf2-e523-4663-9911-5a2327cc5fc1", "points": [ { "id": "11c0f854-39ba-427f-b1ad-2b328ee7dc51", "type": "point", - "x": 1253.1499347394756, - "y": 204.48752438189223 + "x": 1094.262557345799, + "y": -12.612500041711554 + }, + { + "id": "10e546b8-a253-4554-8f71-6f835ab1e768", + "type": "point", + "x": 1167.2268915343407, + "y": -9.833648673542967 }, { "id": "675354f6-b5eb-489b-a4a3-3abf7eb01289", "type": "point", - "x": 1649.800132370911, - "y": -254.36250112136804 + "x": 1258.8875332945984, + "y": -55.875011969618676 } ], "labels": [], @@ -603,22 +645,22 @@ "id": "395dbeea-f9da-4575-8b53-19409bd723a9", "type": "triangle-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "093cf568-0afb-4ed3-a16d-ceafbd0b1b4b", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "03091d86-fddd-4b53-8fcf-f61fc8b5be30", "target": "0b6ea3c7-f03b-41f3-835c-c0d791318388", "targetPort": "9cf8c22b-b362-4b85-863d-31c72759e0b8", "points": [ { "id": "cdd94790-83d0-41fd-918a-a6d881df667c", "type": "point", - "x": 1253.1499347394756, - "y": 161.28752341817912 + "x": 1094.262557345799, + "y": -55.812495129125864 }, { "id": "cd1f3394-50b6-436a-8795-5df58fa46ef8", "type": "point", - "x": 1649.800132370911, - "y": -275.96250160322455 + "x": 1258.8875332945984, + "y": -77.47500718729091 } ], "labels": [], @@ -633,20 +675,20 @@ "selected": false, "source": "f294af0e-2b47-4964-8665-710f0c3e3425", "sourcePort": "4f7b12dd-fdc5-444a-8859-faeae1954d9d", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "bc434641-ca5a-4b0d-be7d-faca99bde030", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "9b722136-fa7a-4d2f-a503-3b498bd0114f", "points": [ { "id": "aad51739-fec8-4c4c-bc99-7c94924511e9", "type": "point", "x": 891.1250452452311, - "y": 226.50001410228703 + "y": 226.49997394757895 }, { "id": "56080fc2-8529-4d3c-8ab7-d334d8b7e0d2", "type": "point", - "x": 1064.9624861375014, - "y": 182.88750382268162 + "x": 873.3626009449972, + "y": -35.01251810569876 } ], "labels": [], @@ -661,8 +703,8 @@ "selected": false, "source": "febd7de5-632c-4bef-a620-18f57ec1011a", "sourcePort": "24fa88a6-34d3-4854-b95c-f6f0cde0bb26", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "7653ca16-96ad-4595-a251-655b4ba57b36", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "6e6bd2b8-0c7b-4678-93f0-f3e9e407d5c6", "points": [ { "id": "2b63dccf-a70f-455d-88e8-86388b9aa5dc", @@ -673,8 +715,8 @@ { "id": "83591d88-d929-4050-bed6-2364fdd8a93f", "type": "point", - "x": 1064.9624861375014, - "y": 204.48752438189223 + "x": 873.3626009449972, + "y": -15.012506940731125 } ], "labels": [], @@ -687,22 +729,46 @@ "id": "19b921bc-6667-4af1-b605-5e872c84144e", "type": "parameter-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "d1cc95ab-bd26-4949-b65a-08342b364d37", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "bbbcd06d-8a0e-417b-9791-ee20ee012422", "target": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", "targetPort": "fd787def-d162-4eab-a943-499b5b6e7ca9", "points": [ { "id": "dfb4f8ca-8187-4384-ac44-1cf943336d3b", "type": "point", - "x": 1253.1499347394756, - "y": 204.48752438189223 + "x": 1094.262557345799, + "y": -12.612500041711554 + }, + { + "id": "c5367c8a-51d8-467d-9410-bd7aad6c3c9b", + "type": "point", + "x": 1167.172778980228, + "y": -10.68141202130631 + }, + { + "id": "7b46a85b-d776-4646-bc32-953c790a0eec", + "type": "point", + "x": 1165.2788395862885, + "y": 133.02349418360023 + }, + { + "id": "84235211-b44d-4ec7-982b-6180a110d38e", + "type": "point", + "x": 1302.778839586289, + "y": 136.43258509269117 + }, + { + "id": "870a5fef-d8ea-49b6-9e37-870f4178b7a3", + "type": "point", + "x": 1302.7788395862888, + "y": 351.205312365419 }, { "id": "9746b83f-58fc-47c9-aa14-13a0a91d8d51", "type": "point", - "x": 1860.5500295748589, - "y": 337.38748133604554 + "x": 1396.9250299544124, + "y": 348.74999445023826 } ], "labels": [], @@ -715,22 +781,22 @@ "id": "82412b56-de6e-486c-b98e-92b41382ef0c", "type": "triangle-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "bfee2f20-60c5-4515-b297-ec5f39ebc94d", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "0683711b-47ef-434a-b66d-d2f731f5fb18", "target": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", "targetPort": "ff0e9f36-2593-4d5d-a2bb-d23f90c30330", "points": [ { "id": "aac2e45e-7442-4748-9f81-f16bdbc96055", "type": "point", - "x": 1253.1499347394756, - "y": 139.68750285896851 + "x": 1094.262557345799, + "y": -77.41251360714728 }, { "id": "7d3e2d55-90d8-4178-826a-e4c6ff343cfb", "type": "point", - "x": 1274.3875025908933, - "y": -85.85000806311271 + "x": 1218.6999918446559, + "y": -269.18747503218447 } ], "labels": [], @@ -745,20 +811,20 @@ "selected": false, "source": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", "sourcePort": "003a115f-04c9-4dd3-b287-f1bacb3b0d86", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "b8d737e0-d938-41db-b318-354957aee048", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "3497fe5a-e667-46b3-87e9-af61df8c2d90", "points": [ { "id": "6448eabf-a3b9-4907-aa03-ba76b924ca6b", "type": "point", - "x": 990.1375606646393, - "y": -18.93748750390199 + "x": 638.8250541358702, + "y": -45.25000080465105 }, { "id": "9b95804a-9da7-47dd-a62c-56414d282feb", "type": "point", - "x": 1064.9624861375014, - "y": 139.68750285896851 + "x": 873.6625966464846, + "y": -77.41251360714728 } ], "labels": [], @@ -773,20 +839,26 @@ "selected": false, "source": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", "sourcePort": "c6f8e346-f436-413a-bb36-f031355e5816", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "21b819e4-de99-45e0-a86e-8b14fad3068a", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "8324c7fb-b2eb-49f1-9dbd-57b0e7082db3", "points": [ { "id": "0a34fd48-7719-4257-b6e5-a8f3183deaea", "type": "point", - "x": 990.1375606646393, - "y": 2.6625173698757596 + "x": 638.8250541358702, + "y": -23.650003260943897 + }, + { + "id": "8d85293b-7981-45b3-b07d-390b5540f073", + "type": "point", + "x": 688.3620707198576, + "y": -25.644432263094714 }, { "id": "04522a55-3181-49d0-8b49-6582ab093b61", "type": "point", - "x": 1064.9624861375014, - "y": 161.28752341817912 + "x": 873.6625966464846, + "y": -55.812495129125864 } ], "labels": [], @@ -801,20 +873,20 @@ "selected": false, "source": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", "sourcePort": "533bf298-310c-4d27-8fc4-99920d018b58", - "target": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "targetPort": "9fbc7934-0efc-45ac-92fc-add07ef4f7f5", + "target": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "targetPort": "2315560f-ac4e-4a25-8d5a-add98feaf704", "points": [ { "id": "1b7a85aa-bd0d-4a63-88f8-2689c5986102", "type": "point", - "x": 990.1375606646393, - "y": 24.262513459811125 + "x": 638.8250541358702, + "y": -2.050005717236738 }, { "id": "b2acf854-a715-4398-b256-6fc5cc620ca4", "type": "point", - "x": 1064.9624861375014, - "y": 226.0875129428198 + "x": 873.3626009449972, + "y": 4.987497246131756 } ], "labels": [], @@ -835,14 +907,26 @@ { "id": "7f5a2ec8-ac6a-428b-a1e1-bbda9619288f", "type": "point", - "x": 1594.6625144064171, - "y": 514.0374866013321 + "x": 1222.3001728659974, + "y": 352.2000066572695 + }, + { + "id": "87c9a3f2-98b3-4a43-a16c-b489e10b070f", + "type": "point", + "x": 1302.778839586289, + "y": 351.20531236541893 + }, + { + "id": "9bb7437d-71ff-44c9-9651-fe06adf6cb5e", + "type": "point", + "x": 1302.778839586289, + "y": 208.0234941836004 }, { "id": "d0175b69-26da-4696-b75e-26bbd522f4cb", "type": "point", - "x": 2247.687512870501, - "y": 541.8500026632155 + "x": 1624.8999727897785, + "y": 199.29999238471908 } ], "labels": [], @@ -863,14 +947,14 @@ { "id": "cc443f7e-34a5-4cdf-a1fd-024aa4f11acf", "type": "point", - "x": 1594.6625144064171, - "y": 492.43749804040453 + "x": 1222.3001728659974, + "y": 330.5999998094227 }, { "id": "3345f418-1d46-4f4a-a8c0-e1a8083e1129", "type": "point", - "x": 1860.5500295748589, - "y": 315.7874607768349 + "x": 1396.9250299544124, + "y": 327.1500027216184 } ], "labels": [], @@ -891,14 +975,14 @@ { "id": "111077d0-035e-4cef-b9c7-71713adc97ec", "type": "point", - "x": 1594.6625144064171, - "y": 535.6375071605428 + "x": 1222.3001728659974, + "y": 373.79998791873226 }, { "id": "d13686f6-1b3a-4664-8be2-573e3e1603c7", "type": "point", - "x": 1860.5500295748589, - "y": 358.98746989697315 + "x": 1396.9250299544124, + "y": 370.3500047871375 } ], "labels": [], @@ -919,14 +1003,14 @@ { "id": "73de4f23-8fed-4f23-a76b-08cd0482e16c", "type": "point", - "x": 1594.6625144064171, - "y": 557.2375277197532 + "x": 1222.3001728659974, + "y": 395.3999831364045 }, { "id": "d2dc3947-aede-4038-8d9a-87c19e9b61f9", "type": "point", - "x": 1860.5500295748589, - "y": 380.58749045618373 + "x": 1396.9250299544124, + "y": 391.9499895376526 } ], "labels": [], @@ -947,14 +1031,38 @@ { "id": "c92d57a0-10f6-4cca-8a40-6b240bdc5fdd", "type": "point", - "x": 990.1375606646393, - "y": 2.6625173698757596 + "x": 638.8250541358702, + "y": -23.650003260943897 + }, + { + "id": "3e3aa55f-aa6b-42ea-bce4-92d7345cbeab", + "type": "point", + "x": 689.1424759499239, + "y": -24.93105127094559 + }, + { + "id": "3207205a-f518-46ce-88b8-ab1b57d09e23", + "type": "point", + "x": 693.6879304953784, + "y": 134.1598578199639 + }, + { + "id": "5f906ad6-805a-4385-aa1b-01af8a243edf", + "type": "point", + "x": 943.6879304953791, + "y": 134.1598578199639 + }, + { + "id": "f2460e8a-5c80-49ab-a17e-fc047646120b", + "type": "point", + "x": 943.6879304953791, + "y": 351.205312365419 }, { "id": "20d804c4-1f0f-4246-933c-f78ef035c11b", "type": "point", - "x": 1435.824945019081, - "y": 514.0374866013321 + "x": 1063.4625799734667, + "y": 352.2000066572695 } ], "labels": [], @@ -967,22 +1075,22 @@ "id": "e6f70695-074c-4522-ac77-6f7e47ef7da3", "type": "triangle-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "a8e099e6-6df4-417a-a291-03f2256bff17", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "b8491b3b-c85e-48c4-bbf9-ba2be145ea39", "target": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "targetPort": "d74b05ec-8a70-4ed1-a1bb-636a9d2a7846", "points": [ { "id": "b80ccad7-9b06-4bb9-be4f-3b46b266e554", "type": "point", - "x": 1253.1499347394756, - "y": 182.88750382268162 + "x": 1094.262557345799, + "y": -34.212518519732974 }, { "id": "4f32ed98-8635-4d80-84de-179d84602913", "type": "point", - "x": 1435.824945019081, - "y": 492.43749804040453 + "x": 1063.4625799734667, + "y": 330.5999998094227 } ], "labels": [], @@ -995,22 +1103,46 @@ "id": "e0e00e68-79e5-496b-b919-7e2493a9c364", "type": "parameter-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "d1cc95ab-bd26-4949-b65a-08342b364d37", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "bbbcd06d-8a0e-417b-9791-ee20ee012422", "target": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "targetPort": "26d94d22-2025-4df7-89a7-7c32ff4c9a5b", "points": [ { "id": "ac0235b1-0925-46cc-81bb-d026508c361e", "type": "point", - "x": 1253.1499347394756, - "y": 204.48752438189223 + "x": 1094.262557345799, + "y": -12.612500041711554 + }, + { + "id": "a82a0d9b-0818-4116-add4-711acce0f904", + "type": "point", + "x": 1167.551566859016, + "y": -10.374774214668486 + }, + { + "id": "c7fbe16a-b9b5-480d-8749-9710fd1bf8c2", + "type": "point", + "x": 1164.142475949925, + "y": 133.02349418360023 + }, + { + "id": "c26d138e-b0e2-41a2-9289-506a74375464", + "type": "point", + "x": 885.7333850408335, + "y": 135.29622145632752 + }, + { + "id": "e1bd8df7-8740-473f-9599-2bcdf08d1ada", + "type": "point", + "x": 883.4606577681061, + "y": 375.06894872905536 }, { "id": "09773268-fe02-4ceb-913a-ffabbcf686d2", "type": "point", - "x": 1435.824945019081, - "y": 535.6375071605428 + "x": 1063.4625799734667, + "y": 373.79998791873226 } ], "labels": [], @@ -1023,22 +1155,28 @@ "id": "6821edb4-f69c-4b7a-b318-e8f09e282fe6", "type": "parameter-link", "selected": false, - "source": "2bd3f484-e84d-4ced-abc4-4443692909ac", - "sourcePort": "d1cc95ab-bd26-4949-b65a-08342b364d37", + "source": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "sourcePort": "bbbcd06d-8a0e-417b-9791-ee20ee012422", "target": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", "targetPort": "ec8d41ff-c4fa-4f0b-b967-5f0d653a20ca", "points": [ { "id": "5f04c403-7a45-40bb-b7c9-0c1d1b6ce09f", "type": "point", - "x": 1253.1499347394756, - "y": 204.48752438189223 + "x": 1094.262557345799, + "y": -12.612500041711554 + }, + { + "id": "973244cf-853d-4321-8abb-fa85bac490cc", + "type": "point", + "x": 1168.032677906075, + "y": -10.438391637195242 }, { "id": "7cda2a0a-104d-445b-8f5f-e89fa4c83e4f", "type": "point", - "x": 1274.3875025908933, - "y": -64.2499875039021 + "x": 1218.6999918446559, + "y": -247.58752749822804 } ], "labels": [], @@ -1059,14 +1197,14 @@ { "id": "c4e306cb-1b1c-4841-b813-d47a2b4a29d1", "type": "point", - "x": 64.80001203226584, - "y": 110.53751378104903 + "x": -379.9374959855316, + "y": 65.79999554812636 }, { "id": "cf8658ca-2643-46e0-a2cf-0487aa368076", "type": "point", - "x": 99.82499629162038, - "y": -41.93750195959696 + "x": -347.52497978702434, + "y": -41.93750378197574 } ], "labels": [], @@ -1087,14 +1225,14 @@ { "id": "9a439c93-ca1d-4737-8e77-2888896c69ee", "type": "point", - "x": 64.80001203226584, - "y": 110.53751378104903 + "x": -379.9374959855316, + "y": 65.79999554812636 }, { "id": "215642bd-0df9-4ee5-9984-ffe677b4db31", "type": "point", - "x": 332.3374603130027, - "y": 6.19998653105998 + "x": -130.79998857013186, + "y": -42.47500393084198 } ], "labels": [], @@ -1115,14 +1253,14 @@ { "id": "da1851e4-99d4-45dd-bf03-b46ce4803115", "type": "point", - "x": 861.0126118116982, - "y": -304.2249988526272 + "x": 617.5874400392054, + "y": -231.84998462475244 }, { "id": "34f05843-6f74-430d-80e1-21eda7a8b38e", "type": "point", - "x": 1063.587588933554, - "y": -215.07500174376588 + "x": 750.4249495666447, + "y": -158.50001448173654 } ], "labels": [], @@ -1134,7 +1272,7 @@ } }, { - "id": "78ee6e7b-de10-45a0-9eac-3809d512ee9b", + "id": "73906131-caff-4eeb-a652-7e25993e9216", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -1147,15 +1285,15 @@ "type": "Start", "borderColor": "rgb(0,192,255)" }, - "x": -123.98526315789478, - "y": -68.73584210526342, + "x": -555.564210526317, + "y": -100.31478947368456, "ports": [ { "id": "c54264ae-a107-44e5-b513-1e628c4ebc52", "type": "default", "extras": {}, - "x": -66.52499696238912, - "y": -41.92501384539054, + "x": -498.11248503455937, + "y": -73.51250086978007, "name": "out-0", "alignment": "right", "parentNode": "9c663f49-e6cb-4d60-97ef-34e14e550ecf", @@ -1183,15 +1321,15 @@ "extras": { "type": "boolean" }, - "x": 557.592, - "y": 56.763, + "x": -43.72378947368588, + "y": 30.447210526315715, "ports": [ { "id": "3c3ba4b3-2d28-42b4-8ae5-02d6bf2cebdc", "type": "default", "extras": {}, - "x": 612.912459670528, - "y": 80.562506071345, + "x": 11.612492505248218, + "y": 54.23749578072983, "name": "out-0", "alignment": "right", "parentNode": "ce10d706-89fb-417f-b279-7e0481632c0a", @@ -1217,17 +1355,18 @@ "type": "custom-node", "selected": false, "extras": { - "type": "int" + "type": "int", + "attached": true }, - "x": 1595.73, - "y": -81.425, + "x": 1488.154242424242, + "y": -34.45530303030288, "ports": [ { "id": "d7575020-d179-46b5-8e8c-4bb891744320", "type": "default", "extras": {}, - "x": 1659.2001569104568, - "y": -57.62498268533713, + "x": 1551.6250101729852, + "y": -10.649990161413797, "name": "out-0", "alignment": "right", "parentNode": "bb11734a-d945-4838-8051-8db48e980552", @@ -1254,7 +1393,8 @@ "selected": false, "extras": { "type": "list", - "borderColor": "rgb(0,192,255)" + "borderColor": "rgb(0,192,255)", + "attached": true }, "x": 1963.096, "y": -79.601, @@ -1263,8 +1403,8 @@ "id": "d9b71d71-a894-4498-ae11-e59087cf31dd", "type": "default", "extras": {}, - "x": 2048.15006310906, - "y": -55.79999135875406, + "x": 2048.1502602321725, + "y": -55.80000717727568, "name": "out-0", "alignment": "right", "parentNode": "b0d72211-d4ae-405e-8420-001e516717a6", @@ -1292,15 +1432,15 @@ "extras": { "type": "boolean" }, - "x": 672.309, - "y": 324.332, + "x": 318.36163157894634, + "y": 25.64778947368336, "ports": [ { "id": "329932c8-0045-4f10-9b21-04d1ec503a58", "type": "default", "extras": {}, - "x": 722.337412127354, - "y": 348.1250108899107, + "x": 368.3875064986748, + "y": 49.4374901238129, "name": "out-0", "alignment": "right", "parentNode": "f7f28b86-04e2-4466-a56d-bc9615dd342f", @@ -1321,49 +1461,14 @@ "329932c8-0045-4f10-9b21-04d1ec503a58" ] }, - "fee87791-0f62-43a9-b135-4ca50231feec": { - "id": "fee87791-0f62-43a9-b135-4ca50231feec", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string" - }, - "x": 1969.612, - "y": -143.155, - "ports": [ - { - "id": "89e4bb0e-58a9-41ea-b506-ef1481d3d559", - "type": "default", - "extras": {}, - "x": 2030.7625926629248, - "y": -119.34999681979454, - "name": "out-0", - "alignment": "right", - "parentNode": "fee87791-0f62-43a9-b135-4ca50231feec", - "links": [ - "d89c8790-d070-4615-bbd1-dc71a366a87b" - ], - "in": false, - "label": "$prompt", - "varName": "$prompt", - "portType": "", - "dataType": "" - } - ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], - "portsOutOrder": [ - "89e4bb0e-58a9-41ea-b506-ef1481d3d559" - ] - }, "f294af0e-2b47-4964-8665-710f0c3e3425": { "id": "f294af0e-2b47-4964-8665-710f0c3e3425", "type": "custom-node", "selected": false, "extras": { "type": "string", - "borderColor": "rgb(0,192,255)" + "borderColor": "rgb(0,192,255)", + "attached": true }, "x": 819.663, "y": 192.405, @@ -1373,7 +1478,7 @@ "type": "default", "extras": {}, "x": 880.8250733886621, - "y": 216.20001024743502, + "y": 216.19997009272694, "name": "out-0", "alignment": "right", "parentNode": "f294af0e-2b47-4964-8665-710f0c3e3425", @@ -1400,7 +1505,8 @@ "selected": false, "extras": { "type": "boolean", - "borderColor": "rgb(0,192,255)" + "borderColor": "rgb(0,192,255)", + "attached": true }, "x": 863.474, "y": 370.044, @@ -1437,7 +1543,8 @@ "selected": false, "extras": { "type": "string", - "borderColor": "rgb(0,192,255)" + "borderColor": "rgb(0,192,255)", + "attached": true }, "x": 848.623, "y": 284.634, @@ -1473,17 +1580,18 @@ "type": "custom-node", "selected": false, "extras": { - "type": "string" + "type": "string", + "attached": true }, - "x": 2096.664, - "y": 645.686, + "x": 2069.032421052632, + "y": 515.4228421052628, "ports": [ { "id": "334851e4-4cf6-4545-8750-15665dd31252", "type": "default", "extras": {}, - "x": 2154.224988581922, - "y": 669.4749479273294, + "x": 2126.5873864283444, + "y": 539.2125529720453, "name": "out-0", "alignment": "right", "parentNode": "6d5e3579-bd32-4eee-aaf8-8da3ba9a9768", @@ -1509,7 +1617,8 @@ "type": "custom-node", "selected": false, "extras": { - "type": "int" + "type": "int", + "attached": true }, "x": 1712.462, "y": 624.705, @@ -1518,8 +1627,8 @@ "id": "55a2473b-3412-4962-8a44-b1e5ba16ab06", "type": "default", "extras": {}, - "x": 1775.925074673615, - "y": 648.5000558631846, + "x": 1775.9248967151964, + "y": 648.4999984227705, "name": "out-0", "alignment": "right", "parentNode": "ce466fe7-f783-403f-8ade-c69b5637b2aa", @@ -1543,7 +1652,7 @@ "7a8933fb-843d-418d-b762-93ff672691e7": { "id": "7a8933fb-843d-418d-b762-93ff672691e7", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "comment", "commentInput": "1 - the file name mentioned \nin the Slack message \nwithin curly braces {file_name}\n2- edit mask is based on the side \nmentioned in the same slack message\n within parentheses (mask_side)\nex. \"@bot $edit {image_a} (top) add a ball\"", @@ -1566,15 +1675,15 @@ "type": "string", "borderColor": "rgb(0,192,255)" }, - "x": -119.91182163197197, - "y": 76.44316311291361, + "x": -564.6486637372363, + "y": 31.70632100765033, "ports": [ { "id": "c7bd2de2-5358-4888-8806-9d578f8f16e6", "type": "default", "extras": {}, - "x": 54.50000817741384, - "y": 100.23750992619702, + "x": -390.2374914544156, + "y": 55.499993101137605, "name": "parameter-out-0", "alignment": "right", "parentNode": "204d570a-0aa6-42f7-b0a5-2c1a47942253", @@ -1604,15 +1713,15 @@ "type": "string", "borderColor": "rgb(0,192,255)" }, - "x": 673.2699965498482, - "y": -338.32956415981465, + "x": 429.8489439182686, + "y": -265.9611431071829, "ports": [ { "id": "9d28d6f6-62ee-48e1-b571-86975076d100", "type": "default", "extras": {}, - "x": 850.7125759585632, - "y": -314.52498702204633, + "x": 607.2874445703214, + "y": -242.1499952128634, "name": "parameter-out-0", "alignment": "right", "parentNode": "8aacc442-3621-4c39-a5d0-bb5804470044", @@ -1636,7 +1745,7 @@ "650885cb-ecf6-4317-a829-890e48c7e267": { "id": "650885cb-ecf6-4317-a829-890e48c7e267", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_openai/openai_components.py", @@ -1648,15 +1757,15 @@ } ] }, - "x": 618.1134545454545, - "y": -198.40336363636368, + "x": 144.2744452575275, + "y": -99.56435434843772, "ports": [ { "id": "abd4980f-3687-4c04-b821-425f82aa12d7", "type": "default", "extras": {}, - "x": 618.9125367675675, - "y": -171.59998557647643, + "x": 145.0625121555914, + "y": -72.7624941707995, "name": "in-0", "alignment": "left", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1673,8 +1782,8 @@ "id": "ddcd65b2-ec00-4a21-80d3-d9982012ca31", "type": "default", "extras": {}, - "x": 618.9125367675675, - "y": -150.0000051719739, + "x": 145.0625121555914, + "y": -51.16250593123202, "name": "parameter-secret-organization", "alignment": "left", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1689,8 +1798,8 @@ "id": "f1fb724a-4fac-433b-a818-d2c7d1757bc1", "type": "default", "extras": {}, - "x": 618.9125367675675, - "y": -128.40002476747136, + "x": 145.0625121555914, + "y": -29.56249908338519, "name": "parameter-string-base_url", "alignment": "left", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1705,8 +1814,8 @@ "id": "ebb240c7-efa2-4bbf-b5b6-e8fb30d7a0dd", "type": "default", "extras": {}, - "x": 618.9125367675675, - "y": -106.80000420826079, + "x": 145.0625121555914, + "y": -7.962501539678034, "name": "parameter-secret-api_key", "alignment": "left", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1721,8 +1830,8 @@ "id": "82d88176-c82b-42b5-94c5-fc4444c7a28b", "type": "default", "extras": {}, - "x": 618.9125367675675, - "y": -85.1999836490502, + "x": 145.0625121555914, + "y": 13.637496004029122, "name": "parameter-boolean-from_env", "alignment": "left", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1739,8 +1848,8 @@ "id": "d9510211-805c-49dc-a3f3-8705a2e9ed7c", "type": "default", "extras": {}, - "x": 757.0999853695416, - "y": -171.59998557647643, + "x": 283.25001364425395, + "y": -72.7624941707995, "name": "out-0", "alignment": "right", "parentNode": "650885cb-ecf6-4317-a829-890e48c7e267", @@ -1770,7 +1879,7 @@ "0b6ea3c7-f03b-41f3-835c-c0d791318388": { "id": "0b6ea3c7-f03b-41f3-835c-c0d791318388", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_openai/openai_components.py", @@ -1780,17 +1889,19 @@ "lineno": 330, "end_lineno": 358 } - ] + ], + "sourceBranchId": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "portId": "03091d86-fddd-4b53-8fcf-f61fc8b5be30" }, - "x": 1638.7, - "y": -313.068, + "x": 1247.790909090908, + "y": -114.58315151515086, "ports": [ { "id": "9cf8c22b-b362-4b85-863d-31c72759e0b8", "type": "default", "extras": {}, - "x": 1639.5000965177758, - "y": -286.2624973016515, + "x": 1248.587478511824, + "y": -87.7750026561749, "name": "in-0", "alignment": "left", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1807,8 +1918,8 @@ "id": "019ffdf2-e523-4663-9911-5a2327cc5fc1", "type": "default", "extras": {}, - "x": 1639.5000965177758, - "y": -264.66249681979497, + "x": 1248.587478511824, + "y": -66.17501441660743, "name": "parameter-string-prompt", "alignment": "left", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1825,8 +1936,8 @@ "id": "c8a11789-c3a5-4c79-979c-e321fbcc0c3a", "type": "default", "extras": {}, - "x": 1639.5000965177758, - "y": -243.06249633793837, + "x": 1248.587478511824, + "y": -44.5750075687606, "name": "parameter-int-image_count", "alignment": "left", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1843,8 +1954,8 @@ "id": "04de5e7e-013c-4029-b8f0-31f0685e82ec", "type": "default", "extras": {}, - "x": 1639.5000965177758, - "y": -221.46249585608183, + "x": 1248.587478511824, + "y": -24.575005707932633, "name": "parameter-string-size", "alignment": "left", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1859,8 +1970,8 @@ "id": "b76f8855-374d-4970-a3aa-e01d44efdf2d", "type": "default", "extras": {}, - "x": 1806.9000952328256, - "y": -286.2624973016515, + "x": 1427.625028530879, + "y": -87.7750026561749, "name": "out-0", "alignment": "right", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1877,8 +1988,8 @@ "id": "6880feeb-8080-43db-a192-873d7e00ce41", "type": "default", "extras": {}, - "x": 1806.9000952328256, - "y": -264.66249681979497, + "x": 1427.625028530879, + "y": -66.17501441660743, "name": "parameter-out-list-image_urls", "alignment": "right", "parentNode": "0b6ea3c7-f03b-41f3-835c-c0d791318388", @@ -1908,7 +2019,7 @@ "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533": { "id": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_openai/openai_components.py", @@ -1920,15 +2031,15 @@ } ] }, - "x": 1849.462, - "y": 278.693, + "x": 1385.825636363635, + "y": 290.05663636363636, "ports": [ { "id": "0d7755a1-dcd4-4b1a-b865-bd9b4dec882f", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 305.4874569219829, + "x": 1386.6250344855284, + "y": 316.84999213350744, "name": "in-0", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -1945,8 +2056,8 @@ "id": "fd787def-d162-4eab-a943-499b5b6e7ca9", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 327.08747748119356, + "x": 1386.6250344855284, + "y": 338.44999898135427, "name": "parameter-string-prompt", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -1963,8 +2074,8 @@ "id": "3fa522b6-5b80-41d7-9e37-8992dc05b70e", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 348.68749804040414, + "x": 1386.6250344855284, + "y": 360.04998722092176, "name": "parameter-any-image", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -1981,8 +2092,8 @@ "id": "8f394c25-8a8d-4c39-81a5-0a52d4352253", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 370.2875185996147, + "x": 1386.6250344855284, + "y": 381.6499940687686, "name": "parameter-any-mask", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -1999,8 +2110,8 @@ "id": "cef8236d-8dfd-4f69-aa39-0d13c436584d", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 391.8875391588253, + "x": 1386.6250344855284, + "y": 403.2500009166154, "name": "parameter-int-image_count", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -2017,8 +2128,8 @@ "id": "202c66b2-1a54-4a4e-a775-0dae128e2fb1", "type": "default", "extras": {}, - "x": 1850.2499937217237, - "y": 413.4874794086198, + "x": 1386.6250344855284, + "y": 423.25001208158307, "name": "parameter-string-size", "alignment": "left", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -2033,8 +2144,8 @@ "id": "b32de6ec-2958-4418-b02f-32ea441c49ad", "type": "default", "extras": {}, - "x": 2017.6499924367736, - "y": 305.4874569219829, + "x": 1565.6625845045835, + "y": 316.84999213350744, "name": "out-0", "alignment": "right", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -2051,8 +2162,8 @@ "id": "cefd134d-4f54-4308-833b-839af5d2192e", "type": "default", "extras": {}, - "x": 2017.6499924367736, - "y": 327.08747748119356, + "x": 1565.6625845045835, + "y": 338.44999898135427, "name": "parameter-out-list-image_urls", "alignment": "right", "parentNode": "dce62f49-e72c-4c7b-ae8e-c39f4f7fe533", @@ -2084,19 +2195,19 @@ "3a3b9ceb-7089-4838-a89b-bac8ef12f026": { "id": "3a3b9ceb-7089-4838-a89b-bac8ef12f026", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "Finish" }, - "x": 1330.317, - "y": -387.819, + "x": 1057.9485789473677, + "y": -381.2400526315789, "ports": [ { "id": "249a4c79-ad4f-4de5-b248-43be84cbaada", "type": "default", "extras": {}, - "x": 1331.1125810983672, - "y": -361.0125141666291, + "x": 1058.7376249961985, + "y": -354.4375258793079, "name": "in-0", "alignment": "left", "parentNode": "3a3b9ceb-7089-4838-a89b-bac8ef12f026", @@ -2113,8 +2224,8 @@ "id": "a7bc86c0-f50b-4e22-b541-f54c2176aeee", "type": "default", "extras": {}, - "x": 1331.1125810983672, - "y": -339.4124936074185, + "x": 1058.7376249961985, + "y": -332.83751903146106, "name": "parameter-dynalist-outputs", "alignment": "left", "parentNode": "3a3b9ceb-7089-4838-a89b-bac8ef12f026", @@ -2142,7 +2253,7 @@ "91577364-3403-4d4a-823e-942b70193204": { "id": "91577364-3403-4d4a-823e-942b70193204", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -2152,17 +2263,18 @@ "lineno": 53, "end_lineno": 82 } - ] + ], + "nextNode": "None" }, - "x": 1052.488, - "y": -273.782, + "x": 739.3301052631571, + "y": -217.20305263157877, "ports": [ { "id": "0ba17b07-0cf5-47b0-b3e1-014d029a958f", "type": "default", "extras": {}, - "x": 1053.2876170769848, - "y": -246.97501047239564, + "x": 740.1249540977607, + "y": -190.40001679846736, "name": "in-0", "alignment": "left", "parentNode": "91577364-3403-4d4a-823e-942b70193204", @@ -2179,8 +2291,8 @@ "id": "968d77fb-eb3d-4059-96f2-f35d65740936", "type": "default", "extras": {}, - "x": 1053.2876170769848, - "y": -225.37498991318503, + "x": 740.1249540977607, + "y": -168.80000995062053, "name": "parameter-secret-slack_app_token", "alignment": "left", "parentNode": "91577364-3403-4d4a-823e-942b70193204", @@ -2197,8 +2309,8 @@ "id": "be4b52d0-016a-4da4-9f3e-099df0e91a9a", "type": "default", "extras": {}, - "x": 1053.2876170769848, - "y": -203.7749894313285, + "x": 740.1249540977607, + "y": -147.2000031027737, "name": "parameter-boolean-thread", "alignment": "left", "parentNode": "91577364-3403-4d4a-823e-942b70193204", @@ -2213,8 +2325,8 @@ "id": "f545e0c9-eb41-4056-92ca-01f5074630fc", "type": "default", "extras": {}, - "x": 1186.4499448935971, - "y": -246.97501047239564, + "x": 873.2875130487898, + "y": -190.40001679846736, "name": "out-0", "alignment": "right", "parentNode": "91577364-3403-4d4a-823e-942b70193204", @@ -2242,7 +2354,7 @@ "928edbae-09f9-4f3d-b71e-c7aa08de2a68": { "id": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -2252,17 +2364,18 @@ "lineno": 227, "end_lineno": 285 } - ] + ], + "nextNode": "None" }, - "x": 2236.599, - "y": 418.355, + "x": 1613.8119186602858, + "y": 77.41226674641055, "ports": [ { "id": "67e59c4c-0bd6-42cc-b250-cebe9a73c214", "type": "default", "extras": {}, - "x": 2237.387477017366, - "y": 445.1500288792202, + "x": 1614.5999773208946, + "y": 104.19999777181579, "name": "in-0", "alignment": "left", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2279,8 +2392,8 @@ "id": "1a052700-c1dd-4f56-af62-0bf909a9c3e0", "type": "default", "extras": {}, - "x": 2237.387477017366, - "y": 466.7500494384308, + "x": 1614.5999773208946, + "y": 125.79999008194439, "name": "parameter-dict-event", "alignment": "left", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2297,8 +2410,8 @@ "id": "ed6f76c9-a0d5-43a0-87e5-d1d54cb967cf", "type": "default", "extras": {}, - "x": 2237.387477017366, - "y": 488.3499896882252, + "x": 1614.5999773208946, + "y": 147.3999905331952, "name": "parameter-string-msg_trigger", "alignment": "left", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2315,8 +2428,8 @@ "id": "907d15df-1307-4a72-ba95-01ab9b3a7cf3", "type": "default", "extras": {}, - "x": 2237.387477017366, - "y": 509.95001024743584, + "x": 1614.5999773208946, + "y": 167.39999239402314, "name": "parameter-list-image_urls", "alignment": "left", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2333,8 +2446,8 @@ "id": "834ebc9a-ec99-4cfc-80ab-bd6cc59793e5", "type": "default", "extras": {}, - "x": 2237.387477017366, - "y": 531.5500308066464, + "x": 1614.5999773208946, + "y": 188.9999899377303, "name": "parameter-list-image_titles", "alignment": "left", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2351,8 +2464,8 @@ "id": "e29f9b55-a456-47cf-910a-8ead3a7d413e", "type": "default", "extras": {}, - "x": 2441.912751996808, - "y": 445.1500288792202, + "x": 1819.1250642587759, + "y": 104.19999777181579, "name": "out-0", "alignment": "right", "parentNode": "928edbae-09f9-4f3d-b71e-c7aa08de2a68", @@ -2377,148 +2490,10 @@ "e29f9b55-a456-47cf-910a-8ead3a7d413e" ] }, - "2f02e1d5-6b25-410c-9e8c-2f76e614459f": { - "id": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "type": "custom-node", - "selected": true, - "extras": { - "type": "library_component", - "path": "xai_components/xai_slack/slack_components.py", - "description": "A component that replies with multiple images to a specific trigger message in a Slack conversation.\n\n## Inputs\n- `event`: The message event data.\n- `msg_trigger`: The trigger message to watch for in the conversation.\n- `image_urls`: A list of URLs of the images to send as a response.\n- `image_titles`: (Optional) A list of titles for the images. Default value is an empty list.\n\n\n## Outputs\n- `on_reply`: A branch to another component that gets executed when a new reply is made to the parent thread message.\n- `parent_thread_ts`: The timestamp of the parent message to which the first reply was made.\n\n## Requirements\n- `slack_client` instance in the context (created by `SlackClient` component).\n\n### Required Slack permissions:\n- `chat:write` (To send messages in channels)", - "lineNo": [ - { - "lineno": 227, - "end_lineno": 285 - } - ] - }, - "x": 2161.335, - "y": -316.54, - "ports": [ - { - "id": "488776c9-fcc1-4c1a-85c5-73a1f7932000", - "type": "default", - "extras": {}, - "x": 2162.125186464323, - "y": -289.7374857370956, - "name": "in-0", - "alignment": "left", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [ - "9a49870f-03ef-40fa-bf42-6309f859c7ec" - ], - "in": true, - "label": "▶", - "varName": "▶", - "portType": "", - "dataType": "" - }, - { - "id": "ed2c9a60-159c-4da1-a397-faa489aef4d2", - "type": "default", - "extras": {}, - "x": 2162.125186464323, - "y": -268.13750533259304, - "name": "parameter-dict-event", - "alignment": "left", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [ - "8517147f-40f9-4c15-9371-2c5be4fa9727" - ], - "in": true, - "label": "event", - "varName": "event", - "portType": "", - "dataType": "dict" - }, - { - "id": "92d0229b-4384-4c12-bd6b-aa90b7a86c4c", - "type": "default", - "extras": {}, - "x": 2162.125186464323, - "y": -246.53748477338246, - "name": "parameter-string-msg_trigger", - "alignment": "left", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [ - "d89c8790-d070-4615-bbd1-dc71a366a87b" - ], - "in": true, - "label": "msg_trigger", - "varName": "msg_trigger", - "portType": "", - "dataType": "string" - }, - { - "id": "5e18541a-5882-415f-beb0-6f33b6bcb115", - "type": "default", - "extras": {}, - "x": 2162.125186464323, - "y": -224.93752444623397, - "name": "parameter-list-image_urls", - "alignment": "left", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [ - "73a06b3c-5d64-4d34-9149-013415fe193c" - ], - "in": true, - "label": "image_urls", - "varName": "image_urls", - "portType": "", - "dataType": "list" - }, - { - "id": "1ad1a63d-094c-4aed-8415-2ec63555c674", - "type": "default", - "extras": {}, - "x": 2162.125186464323, - "y": -203.3375038870234, - "name": "parameter-list-image_titles", - "alignment": "left", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [ - "d1064fce-67de-43b4-b7ae-873b2ed2c2b9" - ], - "in": true, - "label": "image_titles", - "varName": "image_titles", - "portType": "", - "dataType": "list" - }, - { - "id": "5c92503e-2191-4dbe-81b0-239f0c2ff349", - "type": "default", - "extras": {}, - "x": 2366.649979587268, - "y": -289.7374857370956, - "name": "out-0", - "alignment": "right", - "parentNode": "2f02e1d5-6b25-410c-9e8c-2f76e614459f", - "links": [], - "in": false, - "label": "▶", - "varName": "▶", - "portType": "", - "dataType": "" - } - ], - "name": "RespondtoTriggerWithImages", - "color": "rgb(255,153,0)", - "portsInOrder": [ - "488776c9-fcc1-4c1a-85c5-73a1f7932000", - "ed2c9a60-159c-4da1-a397-faa489aef4d2", - "92d0229b-4384-4c12-bd6b-aa90b7a86c4c", - "5e18541a-5882-415f-beb0-6f33b6bcb115", - "1ad1a63d-094c-4aed-8415-2ec63555c674" - ], - "portsOutOrder": [ - "5c92503e-2191-4dbe-81b0-239f0c2ff349" - ] - }, "2c7eb4a8-5d67-46ac-ba1e-8900b2db921e": { "id": "2c7eb4a8-5d67-46ac-ba1e-8900b2db921e", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -2530,15 +2505,15 @@ } ] }, - "x": 321.246, - "y": -52.501, + "x": -141.9118947368434, + "y": -101.18521052631593, "ports": [ { "id": "0493727f-79a7-4a75-9d94-b0c33d64e508", "type": "default", "extras": {}, - "x": 322.03745645815064, - "y": -25.700022197569773, + "x": -141.09999915824284, + "y": -74.37501322567756, "name": "in-0", "alignment": "left", "parentNode": "2c7eb4a8-5d67-46ac-ba1e-8900b2db921e", @@ -2555,8 +2530,8 @@ "id": "ea912dab-6d70-41ff-968b-a5630a24e1a5", "type": "default", "extras": {}, - "x": 322.03745645815064, - "y": -4.100001638359186, + "x": -141.09999915824284, + "y": -52.77500637783073, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "2c7eb4a8-5d67-46ac-ba1e-8900b2db921e", @@ -2573,8 +2548,8 @@ "id": "9594708d-6f1a-4c34-b3fa-fd3dc72d9600", "type": "default", "extras": {}, - "x": 452.1375059287513, - "y": -25.700022197569773, + "x": -10.99999082173352, + "y": -74.37501322567756, "name": "out-0", "alignment": "right", "parentNode": "2c7eb4a8-5d67-46ac-ba1e-8900b2db921e", @@ -2601,7 +2576,7 @@ "7294acc7-f4b6-4909-a791-432711d35f7a": { "id": "7294acc7-f4b6-4909-a791-432711d35f7a", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -2613,15 +2588,15 @@ } ] }, - "x": 88.73126315789479, + "x": -358.63715789473804, "y": -100.64357894736808, "ports": [ { "id": "0f235f54-c1fc-4293-8552-cfa9f98d7ae7", "type": "default", "extras": {}, - "x": 89.52499243676837, - "y": -73.83748621895148, + "x": -357.8249903751353, + "y": -73.83749446853197, "name": "in-0", "alignment": "left", "parentNode": "7294acc7-f4b6-4909-a791-432711d35f7a", @@ -2638,8 +2613,8 @@ "id": "41ec64a0-2f98-41af-a244-cd9f49e6f596", "type": "default", "extras": {}, - "x": 89.52499243676837, - "y": -52.23750581444896, + "x": -357.8249903751353, + "y": -52.23750622896449, "name": "parameter-secret-slack_bot_token", "alignment": "left", "parentNode": "7294acc7-f4b6-4909-a791-432711d35f7a", @@ -2656,8 +2631,8 @@ "id": "33cb9768-678c-44bd-ad5c-72db6f23e2a8", "type": "default", "extras": {}, - "x": 219.62504190736908, - "y": -73.83748621895148, + "x": -227.72498203862597, + "y": -73.83749446853197, "name": "out-0", "alignment": "right", "parentNode": "7294acc7-f4b6-4909-a791-432711d35f7a", @@ -2684,7 +2659,7 @@ "af52cbc9-b2bc-4d75-9d72-b73188a9f761": { "id": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_utils/utils.py", @@ -2694,17 +2669,18 @@ "lineno": 52, "end_lineno": 61 } - ] + ], + "nextNode": "None" }, - "x": 1263.289, - "y": -122.955, + "x": 1207.6071818181815, + "y": -306.2883333333339, "ports": [ { "id": "ff0e9f36-2593-4d5d-a2bb-d23f90c30330", "type": "default", "extras": {}, - "x": 1264.0874667377584, - "y": -96.1500119179647, + "x": 1208.399996375772, + "y": -279.48747050106846, "name": "in-0", "alignment": "left", "parentNode": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", @@ -2721,8 +2697,8 @@ "id": "ec8d41ff-c4fa-4f0b-b967-5f0d653a20ca", "type": "default", "extras": {}, - "x": 1264.0874667377584, - "y": -74.54999135875411, + "x": 1208.399996375772, + "y": -257.887538086339, "name": "parameter-any-msg", "alignment": "left", "parentNode": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", @@ -2739,8 +2715,8 @@ "id": "f2f1cbd6-b1bc-42a8-8775-1991b39da960", "type": "default", "extras": {}, - "x": 1337.1248652266568, - "y": -96.1500119179647, + "x": 1281.4374928029824, + "y": -279.48747050106846, "name": "out-0", "alignment": "right", "parentNode": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", @@ -2765,7 +2741,7 @@ "fe7d43f6-8c90-4b3c-a6ef-75dad763d325": { "id": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", @@ -2775,17 +2751,19 @@ "lineno": 86, "end_lineno": 129 } - ] + ], + "finishNodeId": "91577364-3403-4d4a-823e-942b70193204", + "isBranchNode": true }, - "x": 811.971, - "y": -77.645, + "x": 460.6552105263148, + "y": -103.96078947368429, "ports": [ { "id": "44525e1b-4232-4416-8b04-e896937cdea7", "type": "default", "extras": {}, - "x": 812.7625219906355, - "y": -50.83751191796458, + "x": 461.4500422265712, + "y": -77.15001009948664, "name": "in-0", "alignment": "left", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2802,8 +2780,8 @@ "id": "b4f96ec9-766a-4a29-8d95-9bc285f61a14", "type": "default", "extras": {}, - "x": 812.7625219906355, - "y": -29.237491358753992, + "x": 461.4500422265712, + "y": -55.5500032516398, "name": "parameter-boolean-mention_only", "alignment": "left", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2820,8 +2798,8 @@ "id": "34e0895e-be9a-4998-9921-bdc229ea8a10", "type": "default", "extras": {}, - "x": 979.8375888080702, - "y": -50.83751191796458, + "x": 628.5249993530958, + "y": -77.15001009948664, "name": "out-0", "alignment": "right", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2838,8 +2816,8 @@ "id": "003a115f-04c9-4dd3-b287-f1bacb3b0d86", "type": "default", "extras": {}, - "x": 979.8375888080702, - "y": -29.237491358753992, + "x": 628.5249993530958, + "y": -55.5500032516398, "name": "out-flow-on_event", "alignment": "right", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2856,8 +2834,8 @@ "id": "c6f8e346-f436-413a-bb36-f031355e5816", "type": "default", "extras": {}, - "x": 979.8375888080702, - "y": -7.637470799543406, + "x": 628.5249993530958, + "y": -33.95000570793265, "name": "parameter-out-dict-event", "alignment": "right", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2877,8 +2855,8 @@ "id": "533bf298-310c-4d27-8fc4-99920d018b58", "type": "default", "extras": {}, - "x": 979.8375888080702, - "y": 13.962509604959122, + "x": 628.5249993530958, + "y": -12.350008164225487, "name": "parameter-out-string-message", "alignment": "right", "parentNode": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", @@ -2905,35 +2883,37 @@ "533bf298-310c-4d27-8fc4-99920d018b58" ] }, - "2bd3f484-e84d-4ced-abc4-4443692909ac": { - "id": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "ee0bde46-b3e6-479b-8af2-78951e89e84d": { + "id": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", - "description": "A component that detects and filters messages containing specific triggers in the text, and then executes the corresponding branch.\n\n## Inputs\n- `event`: A dictionary containing the Slack event data.\n- `msg_trigger`: The trigger string to look for in a message.\n- `reply_trigger`: The trigger string to look for in a message reply.\n- `filter_message`: A boolean indicating whether to filter out the trigger,mention,tags from the message text before passing it to the next component.\n\n## Outputs\n- `out_message`: The filtered message text.\n- `on_message`: A `BaseComponent` to be executed when a message with the `msg_trigger` is detected.\n- `on_reply`: A `BaseComponent` to be executed when a reply message with the `reply_trigger` is detected.", + "description": "A component that retrieves the specific image based on the file name mentioned \nin the slack message within curly braces **`{file_name}`** from the context list of the available images within\nthe thread and applies an optional directional edit mask to the image.\n\n- Directional edit mask is base on the side mentioned in the same slack message within parentheses **`(mask_side)`**\n available options to apply the query to the image:\n - `top` \n - `bottom` \n - `left`\n - `right`\n - if no side/ not available side is mention the mask will be applied on the whole image \n\n## Inputs\n- `event`: A dictionary containing the Slack event data.\n- `message`: The text content of the message.\n\n## Outputs\n- `image_name`: A list containing the file name of the retrieved image.\n- `image`: The retrieved image data in bytes.\n- `mask`: The mask applied to the image in bytes.\n\n## Requirements\n- `PIL` library installed in the Python environment.\n- `requests` library installed in the Python environment.", "lineNo": [ { - "lineno": 377, - "end_lineno": 421 + "lineno": 290, + "end_lineno": 373 } - ] + ], + "sourceBranchId": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "portId": "b8491b3b-c85e-48c4-bbf9-ba2be145ea39" }, - "x": 1053.871, - "y": 102.589, + "x": 1052.3685789473675, + "y": 293.5018947368417, "ports": [ { - "id": "b8d737e0-d938-41db-b318-354957aee048", + "id": "d74b05ec-8a70-4ed1-a1bb-636a9d2a7846", "type": "default", "extras": {}, - "x": 1054.6625142809323, - "y": 129.3874990041165, + "x": 1053.1625845045828, + "y": 320.3000043405387, "name": "in-0", "alignment": "left", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "links": [ - "edf3a8e9-2d7e-446b-a872-5fc03c415edb" + "e6f70695-074c-4522-ac77-6f7e47ef7da3" ], "in": true, "label": "▶", @@ -2942,50 +2922,213 @@ "dataType": "" }, { - "id": "21b819e4-de99-45e0-a86e-8b14fad3068a", + "id": "730d7d84-d029-430c-bafc-5dca13a78200", "type": "default", "extras": {}, - "x": 1054.6625142809323, - "y": 150.9875195633271, - "name": "parameter-string-event", + "x": 1053.1625845045828, + "y": 341.9000111883855, + "name": "parameter-dict-event", "alignment": "left", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "links": [ - "bd37f749-ebb8-4609-a5fa-252bb60df0cb" + "58743b9a-bd29-44f4-b260-83fb7972f1e8" ], "in": true, "label": "event", "varName": "event", "portType": "", - "dataType": "string" + "dataType": "dict" }, { - "id": "bc434641-ca5a-4b0d-be7d-faca99bde030", + "id": "26d94d22-2025-4df7-89a7-7c32ff4c9a5b", "type": "default", "extras": {}, - "x": 1054.6625142809323, - "y": 172.58749996782961, - "name": "parameter-string-msg_trigger", + "x": 1053.1625845045828, + "y": 363.499999427953, + "name": "parameter-string-message", "alignment": "left", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", "links": [ - "c43aefe5-aee8-453d-8df2-8b30558a770a" + "e0e00e68-79e5-496b-b919-7e2493a9c364" ], "in": true, - "label": "msg_trigger", - "varName": "msg_trigger", + "label": "message", + "varName": "message", "portType": "", "dataType": "string" }, { - "id": "7653ca16-96ad-4595-a251-655b4ba57b36", + "id": "4ffe445e-1362-47d8-9ba1-d12cfa2e57ef", "type": "default", "extras": {}, - "x": 1054.6625142809323, - "y": 194.18752052704022, - "name": "parameter-string-reply_trigger", - "alignment": "left", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "x": 1212.0001773971135, + "y": 320.3000043405387, + "name": "out-0", + "alignment": "right", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "links": [ + "d10b190e-f23d-415c-be01-484d00375088" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "9ca5a5f7-b039-48c5-bd7c-d2fee00c332d", + "type": "default", + "extras": {}, + "x": 1212.0001773971135, + "y": 341.9000111883855, + "name": "parameter-out-list-image_name", + "alignment": "right", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "links": [ + "cdacc0a3-a515-41d8-bc37-7e3e4ceed66f" + ], + "in": false, + "label": "image_name", + "varName": "image_name", + "portType": "", + "dataType": "list" + }, + { + "id": "c65cf10d-d071-4d02-84f2-23aec488a4d8", + "type": "default", + "extras": {}, + "x": 1212.0001773971135, + "y": 363.499999427953, + "name": "parameter-out-any-image", + "alignment": "right", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "links": [ + "3d7fa55d-6c19-440b-b0eb-f662a15b5197" + ], + "in": false, + "label": "image", + "varName": "image", + "portType": "", + "dataType": "any" + }, + { + "id": "6c81eed3-99d8-454e-88c6-ed28f3d991e4", + "type": "default", + "extras": {}, + "x": 1212.0001773971135, + "y": 385.0999876675205, + "name": "parameter-out-any-mask", + "alignment": "right", + "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "links": [ + "00f7fc03-de69-44b6-b5c2-83766dcb2564" + ], + "in": false, + "label": "mask", + "varName": "mask", + "portType": "", + "dataType": "any" + } + ], + "name": "RetrieveQueryImage", + "color": "rgb(255,204,0)", + "portsInOrder": [ + "d74b05ec-8a70-4ed1-a1bb-636a9d2a7846", + "730d7d84-d029-430c-bafc-5dca13a78200", + "26d94d22-2025-4df7-89a7-7c32ff4c9a5b" + ], + "portsOutOrder": [ + "4ffe445e-1362-47d8-9ba1-d12cfa2e57ef", + "9ca5a5f7-b039-48c5-bd7c-d2fee00c332d", + "c65cf10d-d071-4d02-84f2-23aec488a4d8", + "6c81eed3-99d8-454e-88c6-ed28f3d991e4" + ] + }, + "93f231e9-58b2-4c5c-a2cd-b2c532e502a0": { + "id": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "type": "custom-node", + "selected": false, + "extras": { + "type": "library_component", + "path": "xai_components/xai_slack/slack_components.py", + "description": "A component that detects and filters messages containing specific triggers in the text, and then executes the corresponding branch.\n\n## Inputs\n- `event`: A dictionary containing the Slack event data.\n- `msg_trigger`: The trigger string to look for in a message.\n- `reply_trigger`: The trigger string to look for in a message reply.\n- `filter_message`: A boolean indicating whether to filter out the trigger,mention,tags from the message text before passing it to the next component.\n\n## Outputs\n- `out_message`: The filtered message text.\n- `on_message`: A `BaseComponent` to be executed when a message with the `msg_trigger` is detected.\n- `on_reply`: A `BaseComponent` to be executed when a reply message with the `reply_trigger` is detected.", + "lineNo": [ + { + "lineno": 377, + "end_lineno": 421 + } + ], + "sourceBranchId": "fe7d43f6-8c90-4b3c-a6ef-75dad763d325", + "portId": "003a115f-04c9-4dd3-b287-f1bacb3b0d86", + "finishNodeId": "af52cbc9-b2bc-4d75-9d72-b73188a9f761", + "isBranchNode": true + }, + "x": 862.563185007974, + "y": -114.51626315789534, + "ports": [ + { + "id": "3497fe5a-e667-46b3-87e9-af61df8c2d90", + "type": "default", + "extras": {}, + "x": 863.3626011776007, + "y": -87.71251605413603, + "name": "in-0", + "alignment": "left", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "links": [ + "edf3a8e9-2d7e-446b-a872-5fc03c415edb" + ], + "in": true, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "8324c7fb-b2eb-49f1-9dbd-57b0e7082db3", + "type": "default", + "extras": {}, + "x": 863.3626011776007, + "y": -66.11249059800986, + "name": "parameter-string-event", + "alignment": "left", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "links": [ + "bd37f749-ebb8-4609-a5fa-252bb60df0cb" + ], + "in": true, + "label": "event", + "varName": "event", + "portType": "", + "dataType": "string" + }, + { + "id": "9b722136-fa7a-4d2f-a503-3b498bd0114f", + "type": "default", + "extras": {}, + "x": 863.3626011776007, + "y": -44.51252096672172, + "name": "parameter-string-msg_trigger", + "alignment": "left", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", + "links": [ + "c43aefe5-aee8-453d-8df2-8b30558a770a" + ], + "in": true, + "label": "msg_trigger", + "varName": "msg_trigger", + "portType": "", + "dataType": "string" + }, + { + "id": "6e6bd2b8-0c7b-4678-93f0-f3e9e407d5c6", + "type": "default", + "extras": {}, + "x": 863.3626011776007, + "y": -24.51250980175409, + "name": "parameter-string-reply_trigger", + "alignment": "left", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "c9f7ff6b-ffed-4602-b106-4e755074297b" ], @@ -2996,14 +3139,14 @@ "dataType": "string" }, { - "id": "9fbc7934-0efc-45ac-92fc-add07ef4f7f5", + "id": "2315560f-ac4e-4a25-8d5a-add98feaf704", "type": "default", "extras": {}, - "x": 1054.6625142809323, - "y": 215.7875410862508, + "x": 863.3626011776007, + "y": -4.512498636786452, "name": "parameter-boolean-filter_message", "alignment": "left", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "a3ec21f0-4086-4866-9a5a-386af37b2917", "ce86a8f8-f715-464f-8d8b-857f9ee44277" @@ -3015,14 +3158,14 @@ "dataType": "boolean" }, { - "id": "bfee2f20-60c5-4515-b297-ec5f39ebc94d", + "id": "0683711b-47ef-434a-b66d-d2f731f5fb18", "type": "default", "extras": {}, - "x": 1242.8499628829065, - "y": 129.3874990041165, + "x": 1083.962561876915, + "y": -87.71251605413603, "name": "out-0", "alignment": "right", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "82412b56-de6e-486c-b98e-92b41382ef0c" ], @@ -3033,14 +3176,14 @@ "dataType": "" }, { - "id": "093cf568-0afb-4ed3-a16d-ceafbd0b1b4b", + "id": "03091d86-fddd-4b53-8fcf-f61fc8b5be30", "type": "default", "extras": {}, - "x": 1242.8499628829065, - "y": 150.9875195633271, + "x": 1083.962561876915, + "y": -66.11249059800986, "name": "out-flow-on_message", "alignment": "right", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "395dbeea-f9da-4575-8b53-19409bd723a9" ], @@ -3051,14 +3194,14 @@ "dataType": "" }, { - "id": "a8e099e6-6df4-417a-a291-03f2256bff17", + "id": "b8491b3b-c85e-48c4-bbf9-ba2be145ea39", "type": "default", "extras": {}, - "x": 1242.8499628829065, - "y": 172.58749996782961, + "x": 1083.962561876915, + "y": -44.51252096672172, "name": "out-flow-on_reply", "alignment": "right", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "e6f70695-074c-4522-ac77-6f7e47ef7da3" ], @@ -3069,14 +3212,14 @@ "dataType": "" }, { - "id": "d1cc95ab-bd26-4949-b65a-08342b364d37", + "id": "bbbcd06d-8a0e-417b-9791-ee20ee012422", "type": "default", "extras": {}, - "x": 1242.8499628829065, - "y": 194.18752052704022, + "x": 1083.962561876915, + "y": -22.912495510595548, "name": "parameter-out-string-out_message", "alignment": "right", - "parentNode": "2bd3f484-e84d-4ced-abc4-4443692909ac", + "parentNode": "93f231e9-58b2-4c5c-a2cd-b2c532e502a0", "links": [ "d5c2d2fa-b65a-415a-afdd-01ff1c8b329d", "19b921bc-6667-4af1-b605-5e872c84144e", @@ -3091,50 +3234,88 @@ } ], "name": "ThreadTriggers", - "color": "rgb(204,204,204)", + "color": "rgb(102,51,102)", "portsInOrder": [ - "b8d737e0-d938-41db-b318-354957aee048", - "21b819e4-de99-45e0-a86e-8b14fad3068a", - "bc434641-ca5a-4b0d-be7d-faca99bde030", - "7653ca16-96ad-4595-a251-655b4ba57b36", - "9fbc7934-0efc-45ac-92fc-add07ef4f7f5" + "3497fe5a-e667-46b3-87e9-af61df8c2d90", + "8324c7fb-b2eb-49f1-9dbd-57b0e7082db3", + "9b722136-fa7a-4d2f-a503-3b498bd0114f", + "6e6bd2b8-0c7b-4678-93f0-f3e9e407d5c6", + "2315560f-ac4e-4a25-8d5a-add98feaf704" ], "portsOutOrder": [ - "bfee2f20-60c5-4515-b297-ec5f39ebc94d", - "093cf568-0afb-4ed3-a16d-ceafbd0b1b4b", - "a8e099e6-6df4-417a-a291-03f2256bff17", - "d1cc95ab-bd26-4949-b65a-08342b364d37" + "0683711b-47ef-434a-b66d-d2f731f5fb18", + "03091d86-fddd-4b53-8fcf-f61fc8b5be30", + "b8491b3b-c85e-48c4-bbf9-ba2be145ea39", + "bbbcd06d-8a0e-417b-9791-ee20ee012422" ] }, - "ee0bde46-b3e6-479b-8af2-78951e89e84d": { - "id": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "e080dea4-522d-4834-8f2c-6089f5fecc99": { + "id": "e080dea4-522d-4834-8f2c-6089f5fecc99", + "type": "custom-node", + "selected": false, + "extras": { + "type": "string", + "attached": true + }, + "x": 1969.612, + "y": -143.155, + "ports": [ + { + "id": "81b9e2e4-9a9e-476b-9259-49ed6643cecb", + "type": "default", + "extras": {}, + "x": 2030.76263890168, + "y": -119.34999681979482, + "name": "out-0", + "alignment": "right", + "parentNode": "e080dea4-522d-4834-8f2c-6089f5fecc99", + "links": [ + "d89c8790-d070-4615-bbd1-dc71a366a87b" + ], + "in": false, + "label": "$prompt", + "varName": "$prompt", + "portType": "", + "dataType": "string" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "81b9e2e4-9a9e-476b-9259-49ed6643cecb" + ] + }, + "fdc390bd-c91b-42fd-9651-69bb5cce5851": { + "id": "fdc390bd-c91b-42fd-9651-69bb5cce5851", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_slack/slack_components.py", - "description": "A component that retrieves the specific image based on the file name mentioned \nin the slack message within curly braces **`{file_name}`** from the context list of the available images within\nthe thread and applies an optional directional edit mask to the image.\n\n- Directional edit mask is base on the side mentioned in the same slack message within parentheses **`(mask_side)`**\n available options to apply the query to the image:\n - `top` \n - `bottom` \n - `left`\n - `right`\n - if no side/ not available side is mention the mask will be applied on the whole image \n\n## Inputs\n- `event`: A dictionary containing the Slack event data.\n- `message`: The text content of the message.\n\n## Outputs\n- `image_name`: A list containing the file name of the retrieved image.\n- `image`: The retrieved image data in bytes.\n- `mask`: The mask applied to the image in bytes.\n\n## Requirements\n- `PIL` library installed in the Python environment.\n- `requests` library installed in the Python environment.", + "description": "A component that replies with multiple images to a specific trigger message in a Slack conversation.\n\n## Inputs\n- `event`: The message event data.\n- `msg_trigger`: The trigger message to watch for in the conversation.\n- `image_urls`: A list of URLs of the images to send as a response.\n- `image_titles`: (Optional) A list of titles for the images. Default value is an empty list.\n\n\n## Outputs\n- `on_reply`: A branch to another component that gets executed when a new reply is made to the parent thread message.\n- `parent_thread_ts`: The timestamp of the parent message to which the first reply was made.\n\n## Requirements\n- `slack_client` instance in the context (created by `SlackClient` component).\n\n### Required Slack permissions:\n- `chat:write` (To send messages in channels)", "lineNo": [ { - "lineno": 290, - "end_lineno": 373 + "lineno": 227, + "end_lineno": 285 } - ] + ], + "nextNode": "None" }, - "x": 1424.737, - "y": 455.344, + "x": 1608.3046969696952, + "y": -113.50969696969635, "ports": [ { - "id": "d74b05ec-8a70-4ed1-a1bb-636a9d2a7846", + "id": "2027b57a-4a0e-499e-b113-37c556d36b7a", "type": "default", "extras": {}, - "x": 1425.524973162512, - "y": 482.1374941855525, + "x": 1609.1001142778305, + "y": -86.70002096672178, "name": "in-0", "alignment": "left", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", "links": [ - "e6f70695-074c-4522-ac77-6f7e47ef7da3" + "9a49870f-03ef-40fa-bf42-6309f859c7ec" ], "in": true, "label": "▶", @@ -3143,16 +3324,16 @@ "dataType": "" }, { - "id": "730d7d84-d029-430c-bafc-5dca13a78200", + "id": "8c9a4f44-f60b-4021-a066-26d068ef3630", "type": "default", "extras": {}, - "x": 1425.524973162512, - "y": 503.73751474476313, + "x": 1609.1001142778305, + "y": -65.0999955105956, "name": "parameter-dict-event", "alignment": "left", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", "links": [ - "58743b9a-bd29-44f4-b260-83fb7972f1e8" + "8517147f-40f9-4c15-9371-2c5be4fa9727" ], "in": true, "label": "event", @@ -3161,108 +3342,231 @@ "dataType": "dict" }, { - "id": "26d94d22-2025-4df7-89a7-7c32ff4c9a5b", + "id": "b31c3472-5462-4d94-9dab-cc41ba33abd7", "type": "default", "extras": {}, - "x": 1425.524973162512, - "y": 525.3375353039737, - "name": "parameter-string-message", + "x": 1609.1001142778305, + "y": -43.500007271028124, + "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", "links": [ - "e0e00e68-79e5-496b-b919-7e2493a9c364" + "d89c8790-d070-4615-bbd1-dc71a366a87b" ], "in": true, - "label": "message", - "varName": "message", + "label": "msg_trigger", + "varName": "msg_trigger", "portType": "", "dataType": "string" }, { - "id": "4ffe445e-1362-47d8-9ba1-d12cfa2e57ef", + "id": "44ed9353-6e3a-4372-aced-5c0f19580557", "type": "default", "extras": {}, - "x": 1584.362542549848, - "y": 482.1374941855525, - "name": "out-0", - "alignment": "right", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", + "x": 1609.1001142778305, + "y": -23.49999610606049, + "name": "parameter-list-image_urls", + "alignment": "left", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", "links": [ - "d10b190e-f23d-415c-be01-484d00375088" + "73a06b3c-5d64-4d34-9149-013415fe193c" ], + "in": true, + "label": "image_urls", + "varName": "image_urls", + "portType": "", + "dataType": "list" + }, + { + "id": "1a255cae-e500-481a-a7b2-3af0a878c8da", + "type": "default", + "extras": {}, + "x": 1609.1001142778305, + "y": -1.8999985623533309, + "name": "parameter-list-image_titles", + "alignment": "left", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "links": [ + "d1064fce-67de-43b4-b7ae-873b2ed2c2b9" + ], + "in": true, + "label": "image_titles", + "varName": "image_titles", + "portType": "", + "dataType": "list" + }, + { + "id": "bdd94af5-b785-42f5-b540-3d343470012f", + "type": "default", + "extras": {}, + "x": 1813.6249034832424, + "y": -86.70002096672178, + "name": "out-0", + "alignment": "right", + "parentNode": "fdc390bd-c91b-42fd-9651-69bb5cce5851", + "links": [], "in": false, "label": "▶", "varName": "▶", "portType": "", "dataType": "" + } + ], + "name": "RespondtoTriggerWithImages", + "color": "rgb(153,204,204)", + "portsInOrder": [ + "2027b57a-4a0e-499e-b113-37c556d36b7a", + "8c9a4f44-f60b-4021-a066-26d068ef3630", + "b31c3472-5462-4d94-9dab-cc41ba33abd7", + "44ed9353-6e3a-4372-aced-5c0f19580557", + "1a255cae-e500-481a-a7b2-3af0a878c8da" + ], + "portsOutOrder": [ + "bdd94af5-b785-42f5-b540-3d343470012f" + ] + }, + "01baeb87-20ac-4e6a-b104-0fe79946e3fe": { + "id": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "type": "custom-node", + "extras": { + "type": "library_component", + "path": "xai_components/xai_slack/slack_components.py", + "description": "A component that listens for incoming Slack messages with image attachments and triggers the specified `on_event` component when an image message event occurs.\n\n## Inputs\n- `slack_bot_token`: The Slack bot token used for authenticating with the Slack API.\n\n## Outputs\n- `event`: The received image message event data.\n- `message`: The text content of the received message.\n- `image`: The first image data in bytes.\n- `on_event`: A `BaseComponent` to be executed when an image message event is received.\n\n## Requirements\n- `app` instance in the context (created by `SlackApp` component).\n- `requests` library installed in the Python environment.\n\n### Required Slack permissions:\n- `app_mentions`:read (To read app mentions)\n- `channels:history` or `groups:history` (To read messages in public channels or private groups, respectively)\n- `files:read` (To read file information)\n\n### Required Slack Event Subscriptions:\n- `app_mention` (If mention_only is set to True)\n- `message.channels` (If mention_only is set to False and the bot listens in public channels)\n- `message.groups` (If mention_only is set to False and the bot listens in private groups)", + "lineNo": [ + { + "lineno": 133, + "end_lineno": 185 + } + ] + }, + "x": -102.76184504000727, + "y": 300.83777244862745, + "ports": [ + { + "id": "e2d0f9c2-88e4-4721-b05f-9df003829881", + "type": "default", + "extras": {}, + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "in-0", + "alignment": "left", + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], + "in": true, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "9ca5a5f7-b039-48c5-bd7c-d2fee00c332d", + "id": "816ce995-1b09-47e2-bdd2-1b4eda5a841d", "type": "default", "extras": {}, - "x": 1584.362542549848, - "y": 503.73751474476313, - "name": "parameter-out-list-image_name", + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "out-0", "alignment": "right", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", - "links": [ - "cdacc0a3-a515-41d8-bc37-7e3e4ceed66f" - ], + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], "in": false, - "label": "image_name", - "varName": "image_name", + "label": "▶", + "varName": "▶", "portType": "", - "dataType": "list" + "dataType": "" }, { - "id": "c65cf10d-d071-4d02-84f2-23aec488a4d8", + "id": "d2b59062-9f14-4cff-ba63-ab756af68b34", "type": "default", "extras": {}, - "x": 1584.362542549848, - "y": 525.3375353039737, - "name": "parameter-out-any-image", + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "parameter-secret-slack_bot_token", + "alignment": "left", + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], + "in": true, + "label": "slack_bot_token", + "varName": "slack_bot_token", + "portType": "", + "dataType": "secret" + }, + { + "id": "39ce7a85-437c-40ec-83c5-d7e7993e58de", + "type": "default", + "extras": {}, + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "out-flow-on_event", "alignment": "right", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", - "links": [ - "3d7fa55d-6c19-440b-b0eb-f662a15b5197" - ], + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], "in": false, - "label": "image", - "varName": "image", + "label": "on_event ▶", + "varName": "on_event ▶", "portType": "", - "dataType": "any" + "dataType": "" }, { - "id": "6c81eed3-99d8-454e-88c6-ed28f3d991e4", + "id": "767fc4ba-63da-46aa-8f1a-859c62bb6023", "type": "default", "extras": {}, - "x": 1584.362542549848, - "y": 546.9375558631842, - "name": "parameter-out-any-mask", + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "parameter-out-dict-event", "alignment": "right", - "parentNode": "ee0bde46-b3e6-479b-8af2-78951e89e84d", - "links": [ - "00f7fc03-de69-44b6-b5c2-83766dcb2564" - ], + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], "in": false, - "label": "mask", - "varName": "mask", + "label": "event", + "varName": "event", "portType": "", - "dataType": "any" + "dataType": "dict" + }, + { + "id": "d61abf8e-bed7-4a31-bb45-f8e0620798de", + "type": "default", + "extras": {}, + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "parameter-out-string-message", + "alignment": "right", + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], + "in": false, + "label": "message", + "varName": "message", + "portType": "", + "dataType": "string" + }, + { + "id": "91c28199-9726-45e7-a605-2c725ad559d8", + "type": "default", + "extras": {}, + "x": -102.76184504000727, + "y": 300.83777244862745, + "name": "parameter-out-bytes-image", + "alignment": "right", + "parentNode": "01baeb87-20ac-4e6a-b104-0fe79946e3fe", + "links": [], + "in": false, + "label": "image", + "varName": "image", + "portType": "", + "dataType": "bytes" } ], - "name": "RetrieveQueryImage", + "name": "SlackImageMessageListener", "color": "rgb(255,204,0)", "portsInOrder": [ - "d74b05ec-8a70-4ed1-a1bb-636a9d2a7846", - "730d7d84-d029-430c-bafc-5dca13a78200", - "26d94d22-2025-4df7-89a7-7c32ff4c9a5b" + "e2d0f9c2-88e4-4721-b05f-9df003829881", + "d2b59062-9f14-4cff-ba63-ab756af68b34" ], "portsOutOrder": [ - "4ffe445e-1362-47d8-9ba1-d12cfa2e57ef", - "9ca5a5f7-b039-48c5-bd7c-d2fee00c332d", - "c65cf10d-d071-4d02-84f2-23aec488a4d8", - "6c81eed3-99d8-454e-88c6-ed28f3d991e4" + "816ce995-1b09-47e2-bdd2-1b4eda5a841d", + "39ce7a85-437c-40ec-83c5-d7e7993e58de", + "767fc4ba-63da-46aa-8f1a-859c62bb6023", + "d61abf8e-bed7-4a31-bb45-f8e0620798de", + "91c28199-9726-45e7-a605-2c725ad559d8" ] } } diff --git a/requirements.txt b/requirements.txt index abcd24f..4cf58da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ slack_bolt==1.20.1 torch==2.4.1 torchvision==0.19.1 requests +openai==1.57.1