diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageCaptioning.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageCaptioning.json index 366774f1510a..0be963c58514 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageCaptioning.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageCaptioning.json @@ -1,51 +1,57 @@ { + "controlType": "SECTION_V2", "identifier": "IMAGE_CAPTION", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'IMAGE_CAPTION'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "IMAGE-CAPTION-Z1", + "children": [ { - "label": "Product description", - "value": { - "actionConfiguration.formData.imageCaption.input.data": "https://i.imgur.com/Eiq5s0F.png", - "actionConfiguration.formData.imageCaption.instructions.data": "Write a 200 word product description" - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Product description", + "value": { + "actionConfiguration.formData.imageCaption.input.data": "https://i.imgur.com/Eiq5s0F.png", + "actionConfiguration.formData.imageCaption.instructions.data": "Write a 200 word product description" + } + } + ] } ] }, { - "label": "Input", - "Description": "Provide an image URL or the base64 encoded image", - "subtitle": "Provide an image URL or the base64 encoded image", - "configProperty": "actionConfiguration.formData.imageCaption.input.data", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "isRequired": true, - "customStyles": { - "width": "700px" - } - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions to tweak the caption", - "subtitle": "Provide additional instructions to tweak the caption", - "configProperty": "actionConfiguration.formData.imageCaption.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "isRequired": false, - "initialValue": "", - "customStyles": { - "width": "700px" - } + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "IMAGE-CAPTION-Z2", + "children": [ + { + "label": "Input", + "Description": "Provide an image URL or the base64 encoded image", + "subtitle": "Provide an image URL or the base64 encoded image", + "configProperty": "actionConfiguration.formData.imageCaption.input.data", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "isRequired": true + }, + { + "label": "Additional Instructions", + "Description": "Provide additional instructions to tweak the caption", + "subtitle": "Provide additional instructions to tweak the caption", + "configProperty": "actionConfiguration.formData.imageCaption.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "isRequired": false, + "initialValue": "" + } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageClassification.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageClassification.json index d038793a19d6..7f1316b6edda 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageClassification.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageClassification.json @@ -1,72 +1,75 @@ { + "controlType": "SECTION_V2", "identifier": "IMAGE_CLASSIFY", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'IMAGE_CLASSIFY'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "IMAGE-CLASSIFY-Z1", + "children": [ { - "label": "Product category", - "value": { - "actionConfiguration.formData.imageClassify.input.data": "https://i.imgur.com/Eiq5s0F.png", - "actionConfiguration.formData.imageClassify.instructions.data": "Identify the category of clothing. Apply only one category.", - "actionConfiguration.formData.imageClassify.labels.data": "Jacket, Shirt, Pant, T-Shirt, Shorts, Dress, Skirt" - } - }, - { - "label": "IT Asset Tagging", - "value": { - "actionConfiguration.formData.imageClassify.input.data": "https://i.imgur.com/EqfqRQY.png", - "actionConfiguration.formData.imageClassify.instructions.data": "Tag the IT hardware.", - "actionConfiguration.formData.imageClassify.labels.data": "Laptop, Phone, Headphones, Mouse, Keyboard, Monitor" - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Product category", + "value": { + "actionConfiguration.formData.imageClassify.input.data": "https://i.imgur.com/Eiq5s0F.png", + "actionConfiguration.formData.imageClassify.instructions.data": "Identify the category of clothing. Apply only one category.", + "actionConfiguration.formData.imageClassify.labels.data": "Jacket, Shirt, Pant, T-Shirt, Shorts, Dress, Skirt" + } + }, + { + "label": "IT Asset Tagging", + "value": { + "actionConfiguration.formData.imageClassify.input.data": "https://i.imgur.com/EqfqRQY.png", + "actionConfiguration.formData.imageClassify.instructions.data": "Tag the IT hardware.", + "actionConfiguration.formData.imageClassify.labels.data": "Laptop, Phone, Headphones, Mouse, Keyboard, Monitor" + } + } + ] } ] }, { - "label": "Input", - "Description": "Provide an image URL or the base64 encoded image for AI to extract entities from", - "subtitle": "Provide an image URL or the base64 encoded image for AI to extract entities from", - "configProperty": "actionConfiguration.formData.imageClassify.input.data", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "isRequired": true, - "customStyles": { - "width": "700px" - } - }, - { - "label": "Labels", - "Description": "Provide labels as comma-separated string input for classification", - "subtitle": "Provide a comma separated list of labels to classify the Input on", - "configProperty": "actionConfiguration.formData.imageClassify.labels.data", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", - "isRequired": true, - "customStyles": { - "width": "700px" - } - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions to tweak the classification", - "subtitle": "Provide additional instructions to tweak the classification", - "configProperty": "actionConfiguration.formData.imageClassify.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "isRequired": false, - "initialValue": "", - "customStyles": { - "width": "700px" - } + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "IMAGE-CLASSIFY-Z2", + "children": [ + { + "label": "Input", + "Description": "Provide an image URL or the base64 encoded image for AI to extract entities from", + "subtitle": "Provide an image URL or the base64 encoded image for AI to extract entities from", + "configProperty": "actionConfiguration.formData.imageClassify.input.data", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "isRequired": true + }, + { + "label": "Labels", + "Description": "Provide labels as comma-separated string input for classification", + "subtitle": "Provide a comma separated list of labels to classify the Input on", + "configProperty": "actionConfiguration.formData.imageClassify.labels.data", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", + "isRequired": true + }, + { + "label": "Additional Instructions", + "Description": "Provide additional instructions to tweak the classification", + "subtitle": "Provide additional instructions to tweak the classification", + "configProperty": "actionConfiguration.formData.imageClassify.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "isRequired": false, + "initialValue": "" + } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageEntityExtraction.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageEntityExtraction.json index 9b0fdce0c734..579b8e66e1ad 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageEntityExtraction.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/imageEntityExtraction.json @@ -1,69 +1,75 @@ { + "controlType": "SECTION_V2", "identifier": "IMAGE_ENTITY_EXTRACT", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'IMAGE_ENTITY_EXTRACT'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "IMAGE-ENTITY-EXTRACT-Z1", + "children": [ { - "label": "KYC document", - "value": { - "actionConfiguration.formData.imageEntity.input.data": "https://i.imgur.com/5h9SfGf.jpgg", - "actionConfiguration.formData.imageEntity.labels.data": "name, date of birth, gender, licence number, height", - "actionConfiguration.formData.imageEntity.instructions.data": "" - } - }, - { - "label": "Expense report", - "value": { - "actionConfiguration.formData.imageEntity.input.data": "https://i.imgur.com/z2PlaKB.jpg", - "actionConfiguration.formData.imageEntity.labels.data": "food items, tax, total cost, date of purchase", - "actionConfiguration.formData.imageEntity.instructions.data": "The date should be in dd/mm/yyyy format" - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "KYC document", + "value": { + "actionConfiguration.formData.imageEntity.input.data": "https://i.imgur.com/5h9SfGf.jpgg", + "actionConfiguration.formData.imageEntity.labels.data": "name, date of birth, gender, licence number, height", + "actionConfiguration.formData.imageEntity.instructions.data": "" + } + }, + { + "label": "Expense report", + "value": { + "actionConfiguration.formData.imageEntity.input.data": "https://i.imgur.com/z2PlaKB.jpg", + "actionConfiguration.formData.imageEntity.labels.data": "food items, tax, total cost, date of purchase", + "actionConfiguration.formData.imageEntity.instructions.data": "The date should be in dd/mm/yyyy format" + } + } + ] } ] }, { - "label": "Input", - "Description": "Provide an image URL or the base64 encoded image", - "subtitle": "Provide an image URL or the base64 encoded image", - "configProperty": "actionConfiguration.formData.imageEntity.input.data", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "isRequired": true, - "customStyles": { - "width": "700px" - } - }, - { - "label": "Entities", - "Description": "Provide a comma separated list of entities to extract from the Input", - "subtitle": "Provide a comma separated list of entities to extract from the Input", - "configProperty": "actionConfiguration.formData.imageEntity.labels.data", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", - "isRequired": true, - "customStyles": { - "width": "700px" - } - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions for the AI to tweak the entity extraction", - "subtitle": "Provide additional instructions for the AI to tweak the entity extraction", - "configProperty": "actionConfiguration.formData.imageEntity.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "initialValue": "", - "isRequired": false + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "IMAGE-ENTITY-EXTRACT-Z2", + "children": [ + { + "label": "Input", + "Description": "Provide an image URL or the base64 encoded image", + "subtitle": "Provide an image URL or the base64 encoded image", + "configProperty": "actionConfiguration.formData.imageEntity.input.data", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "isRequired": true + }, + { + "label": "Entities", + "Description": "Provide a comma separated list of entities to extract from the Input", + "subtitle": "Provide a comma separated list of entities to extract from the Input", + "configProperty": "actionConfiguration.formData.imageEntity.labels.data", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", + "isRequired": true + }, + { + "label": "Additional Instructions", + "Description": "Provide additional instructions for the AI to tweak the entity extraction", + "subtitle": "Provide additional instructions for the AI to tweak the entity extraction", + "configProperty": "actionConfiguration.formData.imageEntity.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "initialValue": "", + "isRequired": false + } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/root.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/root.json index bb0c7d61f004..428dd04959d8 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/root.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/root.json @@ -1,44 +1,50 @@ { "editor": [ { - "controlType": "SECTION", + "controlType": "SECTION_V2", "identifier": "SELECTOR", "children": [ { - "label": "Action", - "description": "Choose the action you would like to use", - "configProperty": "actionConfiguration.formData.usecase.data", - "controlType": "DROP_DOWN", - "isRequired": true, - "initialValue": "TEXT_GENERATE", - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "SELECTOR-Z1", + "children": [ { - "label": "Generate text", - "value": "TEXT_GENERATE" - }, - { - "label": "Classify text", - "value": "TEXT_CLASSIFY" - }, - { - "label": "Summarise text", - "value": "TEXT_SUMMARY" - }, - { - "label": "Extract entities from text", - "value": "TEXT_ENTITY_EXTRACT" - }, - { - "label": "Classify Image", - "value": "IMAGE_CLASSIFY" - }, - { - "label": "Describe Image", - "value": "IMAGE_CAPTION" - }, - { - "label": "Extract entities from image", - "value": "IMAGE_ENTITY_EXTRACT" + "label": "Action", + "description": "Choose the action you would like to use", + "configProperty": "actionConfiguration.formData.usecase.data", + "controlType": "DROP_DOWN", + "isRequired": true, + "initialValue": "TEXT_GENERATE", + "options": [ + { + "label": "Generate text", + "value": "TEXT_GENERATE" + }, + { + "label": "Classify text", + "value": "TEXT_CLASSIFY" + }, + { + "label": "Summarise text", + "value": "TEXT_SUMMARY" + }, + { + "label": "Extract entities from text", + "value": "TEXT_ENTITY_EXTRACT" + }, + { + "label": "Classify Image", + "value": "IMAGE_CLASSIFY" + }, + { + "label": "Describe Image", + "value": "IMAGE_CAPTION" + }, + { + "label": "Extract entities from image", + "value": "IMAGE_ENTITY_EXTRACT" + } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textClassification.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textClassification.json index 84fd690f7f22..0b3b9b491717 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textClassification.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textClassification.json @@ -1,74 +1,83 @@ { + "controlType": "SECTION_V2", "identifier": "TEXT_CLASSIFY", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'TEXT_CLASSIFY'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "TEXT-CLASSIFY-Z1", + "children": [ { - "label": "Customer support", - "value": { - "actionConfiguration.formData.textClassify.input.data": "[\"Hello, I recently made a purchase on your platform, but I encountered an issue during the payment process. The transaction didnt go through, and Im unsure of the cause. Could you please assist? Best, Alice\",\n“Hi Alice, We apologize for any inconvenience. To assist you better, could you provide us with the error message you received, if any? Also, please check if your payment method is valid. Thanks, Support Team\",\n\"I didnt receive any specific error message; the transaction just failed. My payment method should be working fine as I used it elsewhere without any problems. Regards, Alice\",\n\"Thank you for the information, Alice. We will look into this matter and update you as soon as we have more information. In the meantime, could you try a different payment method? Best, Support Team\"]", - "actionConfiguration.formData.textClassify.instructions.data": "If no label fits the input, apply “General” label", - "actionConfiguration.formData.textClassify.labels.data": "Technical, Urgent, Billing, Account, Upgrade, Bug, Refund" - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Customer support", + "value": { + "actionConfiguration.formData.textClassify.input.data": "[\"Hello, I recently made a purchase on your platform, but I encountered an issue during the payment process. The transaction didnt go through, and Im unsure of the cause. Could you please assist? Best, Alice\",\n“Hi Alice, We apologize for any inconvenience. To assist you better, could you provide us with the error message you received, if any? Also, please check if your payment method is valid. Thanks, Support Team\",\n\"I didnt receive any specific error message; the transaction just failed. My payment method should be working fine as I used it elsewhere without any problems. Regards, Alice\",\n\"Thank you for the information, Alice. We will look into this matter and update you as soon as we have more information. In the meantime, could you try a different payment method? Best, Support Team\"]", + "actionConfiguration.formData.textClassify.instructions.data": "If no label fits the input, apply “General” label", + "actionConfiguration.formData.textClassify.labels.data": "Technical, Urgent, Billing, Account, Upgrade, Bug, Refund" + } + }, + { + "label": "Product review", + "value": { + "actionConfiguration.formData.textClassify.input.data": "Received my laptop stand from Macazon after a significant delay in delivery, which was a bit disappointing. Upon unboxing, I noticed the build seemed sturdy, but unfortunately, the stand doesn't function as expected. It's supposed to be adjustable, but the mechanism is quite stiff, making it challenging to change angles or heights.", + "actionConfiguration.formData.textClassify.instructions.data": "Strictly apply only one label", + "actionConfiguration.formData.textClassify.labels.data": "Positive, Neutral, Negative" + } + }, + { + "label": "GitHub Issue", + "value": { + "actionConfiguration.formData.textClassify.input.data": "When console statement is long then the text is truncated when printed on the debugger as seen in the screenshot\n\nSteps To Reproduce\nAdd following statement to the editor and execute the function to observe truncation\nconsole.log('This is a long statement to display truncation issue present on the debugger. You can see this statement not being printed in whole')", + "actionConfiguration.formData.textClassify.instructions.data": "", + "actionConfiguration.formData.textClassify.labels.data": "Bug, Feature Request, Enhancement" + } + } + ] + } + ] + }, + { + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "TEXT-CLASSIFY-Z2", + "children": [ + { + "label": "Input", + "Description": "Provide some text for AI to classify", + "subtitle": "Provide some text for AI to classify", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "configProperty": "actionConfiguration.formData.textClassify.input.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "isRequired": true }, { - "label": "Product review", - "value": { - "actionConfiguration.formData.textClassify.input.data": "Received my laptop stand from Macazon after a significant delay in delivery, which was a bit disappointing. Upon unboxing, I noticed the build seemed sturdy, but unfortunately, the stand doesn't function as expected. It's supposed to be adjustable, but the mechanism is quite stiff, making it challenging to change angles or heights.", - "actionConfiguration.formData.textClassify.instructions.data": "Strictly apply only one label", - "actionConfiguration.formData.textClassify.labels.data": "Positive, Neutral, Negative" - } + "label": "Labels", + "Description": "Provide a comma separated list of labels to classify the Input on", + "subtitle": "Provide a comma separated list of labels to classify the Input on", + "configProperty": "actionConfiguration.formData.textClassify.labels.data", + "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "isRequired": true }, { - "label": "GitHub Issue", - "value": { - "actionConfiguration.formData.textClassify.input.data": "When console statement is long then the text is truncated when printed on the debugger as seen in the screenshot\n\nSteps To Reproduce\nAdd following statement to the editor and execute the function to observe truncation\nconsole.log('This is a long statement to display truncation issue present on the debugger. You can see this statement not being printed in whole')", - "actionConfiguration.formData.textClassify.instructions.data": "", - "actionConfiguration.formData.textClassify.labels.data": "Bug, Feature Request, Enhancement" - } + "label": "Additional Instructions", + "Description": "Provide additional instructions for the AI to tweak the text classification", + "subtitle": "Provide additional instructions for the AI to tweak the text classification", + "configProperty": "actionConfiguration.formData.textClassify.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "initialValue": "", + "isRequired": false } ] - }, - { - "label": "Input", - "Description": "Provide some text for AI to classify", - "subtitle": "Provide some text for AI to classify", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "configProperty": "actionConfiguration.formData.textClassify.input.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "isRequired": true - }, - { - "label": "Labels", - "Description": "Provide a comma separated list of labels to classify the Input on", - "subtitle": "Provide a comma separated list of labels to classify the Input on", - "configProperty": "actionConfiguration.formData.textClassify.labels.data", - "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "isRequired": true, - "customStyles": { - "width": "872px" - } - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions for the AI to tweak the text classification", - "subtitle": "Provide additional instructions for the AI to tweak the text classification", - "configProperty": "actionConfiguration.formData.textClassify.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "initialValue": "", - "isRequired": false } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textEntityExtraction.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textEntityExtraction.json index 69de07de8f01..ee72728b3078 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textEntityExtraction.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textEntityExtraction.json @@ -1,66 +1,75 @@ { + "controlType": "SECTION_V2", "identifier": "TEXT_ENTITY_EXTRACT", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'TEXT_ENTITY_EXTRACT'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "TEXT-ENTITY-EXTRACT-Z1", + "children": [ { - "label": "Customer support", - "value": { - "actionConfiguration.formData.textEntity.input.data": "Dear team,\n\nI have a query regarding the address update process in my profile. I recently moved to a new location, and I need to update my address to 1234 Oak Street, Newville, NV 12345. However, I am encountering an error on the website. Could you assist me with this? My account number is 99892.\n\nRegards, \nMark ", - "actionConfiguration.formData.textEntity.instructions.data": "If you’re unable to extract an entity, respond with \"Not found\"", - "actionConfiguration.formData.textEntity.labels.data": "name, address, account number, gender" - } - }, - { - "label": "Inspection report", - "value": { - "actionConfiguration.formData.textEntity.input.data": "The 2018 Toyota Camry with a mileage of 45,000 miles, VIN 1HGBH41JXMN109186, was thoroughly inspected on January 9, 2024. The engine and transmission are in good condition, showing no significant issues and well-maintained fluid levels. The brakes, however, require attention with the front brake pads and rear brake discs needing replacement due to wear and warping. The suspension system also needs attention; both front struts and rear shock absorbers show signs of leakage and wear and are recommended for replacement. Tire inspection revealed uneven wear patterns with the front left and rear right tires nearing the legal limit for tread depth, necessitating replacement. The exhaust system is in good condition with no observable leaks or corrosion. The electrical system needs attention, particularly the battery, which shows reduced capacity and needs replacement. Cooling system checks out well with adequate coolant levels and no leaks. Some lights and indicators, including the right headlight bulb and rear left turn indicator, are non-functional or dimming and need replacing. The windshield wipers are ineffective and require replacement. Interior components and the body and frame are in good condition, showing only minor wear and superficial damage. In conclusion, while the 2018 Toyota Camry is generally in good condition, it requires maintenance, particularly for the braking system, suspension, tires, electrical systems, lights, and windshield wipers. Addressing these issues will ensure the vehicle’s safety and performance. Regular check-ups are advised to monitor the condition of parts currently in good or fair condition. This inspection was conducted by John Doe, an ASE Certified Mechanic, at XYZ Auto Service Center.", - "actionConfiguration.formData.textEntity.instructions.data": "Remove special characters in the VIN and extract the date in MM/DD/YYYY format.", - "actionConfiguration.formData.textEntity.labels.data": "year, make, model, VIN, date, mechanic name, service centre name, overall condition" - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Customer support", + "value": { + "actionConfiguration.formData.textEntity.input.data": "Dear team,\n\nI have a query regarding the address update process in my profile. I recently moved to a new location, and I need to update my address to 1234 Oak Street, Newville, NV 12345. However, I am encountering an error on the website. Could you assist me with this? My account number is 99892.\n\nRegards, \nMark ", + "actionConfiguration.formData.textEntity.instructions.data": "If you’re unable to extract an entity, respond with \"Not found\"", + "actionConfiguration.formData.textEntity.labels.data": "name, address, account number, gender" + } + }, + { + "label": "Inspection report", + "value": { + "actionConfiguration.formData.textEntity.input.data": "The 2018 Toyota Camry with a mileage of 45,000 miles, VIN 1HGBH41JXMN109186, was thoroughly inspected on January 9, 2024. The engine and transmission are in good condition, showing no significant issues and well-maintained fluid levels. The brakes, however, require attention with the front brake pads and rear brake discs needing replacement due to wear and warping. The suspension system also needs attention; both front struts and rear shock absorbers show signs of leakage and wear and are recommended for replacement. Tire inspection revealed uneven wear patterns with the front left and rear right tires nearing the legal limit for tread depth, necessitating replacement. The exhaust system is in good condition with no observable leaks or corrosion. The electrical system needs attention, particularly the battery, which shows reduced capacity and needs replacement. Cooling system checks out well with adequate coolant levels and no leaks. Some lights and indicators, including the right headlight bulb and rear left turn indicator, are non-functional or dimming and need replacing. The windshield wipers are ineffective and require replacement. Interior components and the body and frame are in good condition, showing only minor wear and superficial damage. In conclusion, while the 2018 Toyota Camry is generally in good condition, it requires maintenance, particularly for the braking system, suspension, tires, electrical systems, lights, and windshield wipers. Addressing these issues will ensure the vehicle’s safety and performance. Regular check-ups are advised to monitor the condition of parts currently in good or fair condition. This inspection was conducted by John Doe, an ASE Certified Mechanic, at XYZ Auto Service Center.", + "actionConfiguration.formData.textEntity.instructions.data": "Remove special characters in the VIN and extract the date in MM/DD/YYYY format.", + "actionConfiguration.formData.textEntity.labels.data": "year, make, model, VIN, date, mechanic name, service centre name, overall condition" + } + } + ] } ] }, { - "label": "Input", - "Description": "Provide some text for AI to extract entities from", - "subtitle": "Provide some text for AI to extract entities from", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "configProperty": "actionConfiguration.formData.textEntity.input.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "isRequired": true - }, - { - "label": "Entities", - "Description": "Provide a comma separated list of entities to extract from the Input", - "subtitle": "Provide a comma separated list of entities to extract from the Input", - "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", - "configProperty": "actionConfiguration.formData.textEntity.labels.data", - "controlType": "QUERY_DYNAMIC_INPUT_TEXT", - "isRequired": true, - "customStyles": { - "width": "872px" - } - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions for the AI to tweak the entity extraction", - "subtitle": "Provide additional instructions for the AI to tweak the entity extraction", - "configProperty": "actionConfiguration.formData.textEntity.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "initialValue": "", - "isRequired": false + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "TEXT-ENTITY-EXTRACT-Z2", + "children": [ + { + "label": "Input", + "Description": "Provide some text for AI to extract entities from", + "subtitle": "Provide some text for AI to extract entities from", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "configProperty": "actionConfiguration.formData.textEntity.input.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "isRequired": true + }, + { + "label": "Entities", + "Description": "Provide a comma separated list of entities to extract from the Input", + "subtitle": "Provide a comma separated list of entities to extract from the Input", + "placeholderText": "Write a list of comma separated text values or use {{ }} to reference a dynamic value", + "configProperty": "actionConfiguration.formData.textEntity.labels.data", + "controlType": "QUERY_DYNAMIC_INPUT_TEXT", + "isRequired": true + }, + { + "label": "Additional Instructions", + "Description": "Provide additional instructions for the AI to tweak the entity extraction", + "subtitle": "Provide additional instructions for the AI to tweak the entity extraction", + "configProperty": "actionConfiguration.formData.textEntity.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "initialValue": "", + "isRequired": false + } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textGeneration.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textGeneration.json index 389ac206bd20..a2a938b67b47 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textGeneration.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textGeneration.json @@ -1,73 +1,91 @@ { + "controlType": "SECTION_V2", "identifier": "TEXT_GENERATE", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'TEXT_GENERATE'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "TEXT-GENERATE-Z1", + "children": [ { - "label": "Email Response", - "value": { - "actionConfiguration.formData.textGeneration.input.data": "Write an 100 word apologetic email response to a delay in order shipment due to operational reasons and assure them that the order will be delivered today" - } - }, - { - "label": "Product description", - "value": { - "actionConfiguration.formData.textGeneration.input.data": "Write a creative product description for an electric car named RevaX, with the keywords- fast charging, 200 miles per single charge, compact, eco-friendly, economical. This is targeted towards a climate concious tech/EV enthusiast who enjoys driving. Also describe the benefits of this product in less than 80 words" - } - }, - { - "label": "Candidate response", - "value": { - "actionConfiguration.formData.textGeneration.input.data": "Write a personalised email rejecting Bob’s application for the Software Engineering position at Acme corp due to gaps in technical skills. Make sure the email has a polite tone but contains less than 150 words." - } + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Email Response", + "value": { + "actionConfiguration.formData.textGeneration.input.data": "Write an 100 word apologetic email response to a delay in order shipment due to operational reasons and assure them that the order will be delivered today" + } + }, + { + "label": "Product description", + "value": { + "actionConfiguration.formData.textGeneration.input.data": "Write a creative product description for an electric car named RevaX, with the keywords- fast charging, 200 miles per single charge, compact, eco-friendly, economical. This is targeted towards a climate concious tech/EV enthusiast who enjoys driving. Also describe the benefits of this product in less than 80 words" + } + }, + { + "label": "Candidate response", + "value": { + "actionConfiguration.formData.textGeneration.input.data": "Write a personalised email rejecting Bob’s application for the Software Engineering position at Acme corp due to gaps in technical skills. Make sure the email has a polite tone but contains less than 150 words." + } + } + ] } ] }, { - "label": "Prompt", - "Description": "Provide an prompt for AI to generate text", - "subtitle": "Provide an prompt for AI to generate text", - "configProperty": "actionConfiguration.formData.textGeneration.input.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "initialValue": "", - "isRequired": true + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "TEXT-GENERATE-Z2", + "children": [ + { + "label": "Prompt", + "Description": "Provide a prompt for AI to generate text", + "subtitle": "Provide a prompt for AI to generate text", + "configProperty": "actionConfiguration.formData.textGeneration.input.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "initialValue": "", + "isRequired": true + } + ] }, { - "label": "Use context from files", - "tooltipText": "Enhance the AI response by providing custom context. Using this option will generate accurate responses that are grounded in file contents.", - "subtitle": "Select files for enhanced AI responses based on file contents. Upload files on the datasource (Data > your Appsmith AI Datasource > Edit > Upload files)", - "isRequired": false, - "propertyName": "fileIds", - "configProperty": "actionConfiguration.formData.fileIds.data", - "controlType": "DROP_DOWN", - "initialValue": [], - "options": [], - "isMultiSelect": true, - "placeholderText": "Select files", - "fetchOptionsConditionally": true, - "conditionals": { - "enable": "{{true}}", - "fetchDynamicValues": { - "condition": "{{actionConfiguration.formData.usecase.data === 'TEXT_GENERATE'}}", - "config": { - "params": { - "requestType": "LIST_FILES", - "displayType": "DROP_DOWN" + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "TEXT-GENERATE-Z3", + "children": [ + { + "label": "Use context from files", + "tooltipText": "Enhance the AI response by providing custom context. Using this option will generate accurate responses that are grounded in file contents.", + "subtitle": "Select files for enhanced AI responses based on file contents. Upload files on the datasource (Data > your Appsmith AI Datasource > Edit > Upload files)", + "isRequired": false, + "propertyName": "fileIds", + "configProperty": "actionConfiguration.formData.fileIds.data", + "controlType": "DROP_DOWN", + "initialValue": [], + "options": [], + "isMultiSelect": true, + "placeholderText": "Select files", + "fetchOptionsConditionally": true, + "conditionals": { + "enable": "{{true}}", + "fetchDynamicValues": { + "condition": "{{actionConfiguration.formData.usecase.data === 'TEXT_GENERATE'}}", + "config": { + "params": { + "requestType": "LIST_FILES", + "displayType": "DROP_DOWN" + } + } } } } - } + ] } ] } diff --git a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textSummarization.json b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textSummarization.json index 0ba71c93df2d..765d82496a1b 100644 --- a/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textSummarization.json +++ b/app/server/appsmith-plugins/appsmithAiPlugin/src/main/resources/editor/textSummarization.json @@ -1,59 +1,71 @@ { + "controlType": "SECTION_V2", "identifier": "TEXT_SUMMARY", - "controlType": "SECTION", "conditionals": { "show": "{{actionConfiguration.formData.usecase.data === 'TEXT_SUMMARY'}}" }, "children": [ { - "label": "Try out these examples", - "Description": "Try out these examples", - "subtitle": "", - "configProperty": "", - "controlType": "FORM_TEMPLATE", - "isRequired": false, - "options": [ + "controlType": "DOUBLE_COLUMN_ZONE", + "identifier": "TEXT-SUMMARY-Z1", + "children": [ { - "label": "Support conversation", - "value": { - "actionConfiguration.formData.textSummary.input.data": "[\"Hey team, I am experiencing difficulties with logging into my account. Despite entering the correct credentials, I keep getting an error message. This issue is preventing me from accessing your services, and I would appreciate a prompt resolution. Regards, Bob\", \n\"Hello Bob, Thank you for reaching out. We apologize for the inconvenience. Can you please confirm if you have tried resetting your password? Additionally, please ensure that your browser is up-to-date. Best, Support Team\",\n\"Hi, I tried resetting my password, but the issue persists. Also, my browser is updated to the latest version. Can you please look into this further? Thanks, Bob\",\n\"Thank you for the update, Bob. We will investigate this further and get back to you shortly. In the meantime, can you try accessing your account from a different device? Regards, Support Team\"]", - "actionConfiguration.formData.textSummary.instructions.data": "The input is a customer support conversation and contains an array of messages between the customer and the support agent. Summarise the conversation in less than 200 words." - } - }, + "label": "Try out these examples", + "Description": "Try out these examples", + "subtitle": "", + "configProperty": "", + "controlType": "FORM_TEMPLATE", + "isRequired": false, + "options": [ + { + "label": "Support conversation", + "value": { + "actionConfiguration.formData.textSummary.input.data": "[\"Hey team, I am experiencing difficulties with logging into my account. Despite entering the correct credentials, I keep getting an error message. This issue is preventing me from accessing your services, and I would appreciate a prompt resolution. Regards, Bob\", \n\"Hello Bob, Thank you for reaching out. We apologize for the inconvenience. Can you please confirm if you have tried resetting your password? Additionally, please ensure that your browser is up-to-date. Best, Support Team\",\n\"Hi, I tried resetting my password, but the issue persists. Also, my browser is updated to the latest version. Can you please look into this further? Thanks, Bob\",\n\"Thank you for the update, Bob. We will investigate this further and get back to you shortly. In the meantime, can you try accessing your account from a different device? Regards, Support Team\"]", + "actionConfiguration.formData.textSummary.instructions.data": "The input is a customer support conversation and contains an array of messages between the customer and the support agent. Summarise the conversation in less than 200 words." + } + }, + { + "label": "Blog post", + "value": { + "actionConfiguration.formData.textSummary.input.data": "The iPhone 15, Apple's latest entry in its iconic smartphone series, is a testament to the company's continued innovation and commitment to user experience. This review delves into its design, performance, camera, battery life, and unique features, offering a comprehensive overview for both tech enthusiasts and the average consumer. The iPhone 15 sports a sleek design that follows Apple's philosophy of elegance and simplicity. The chassis, a harmonious blend of glass and stainless steel, feels robust yet luxurious. It’s slightly lighter than its predecessor, making it more comfortable to hold for extended periods. The standout design element is the bezel-less OLED display, which offers an immersive viewing experience. The IP68 rating ensures durability against dust and water, making it a reliable companion for everyday use. The Super Retina XDR display on the iPhone 15 is a visual feast. The colors are vibrant, and the blacks are deep, thanks to the OLED technology. With a 120Hz refresh rate, the responsiveness is fluid, whether scrolling through web pages or playing high-intensity games. The brightness levels are impressive, offering excellent visibility even in direct sunlight.\nAudio quality has also seen an upgrade. The speakers deliver richer and more detailed sound, enhancing the overall multimedia experience. Whether it's watching movies or playing games, the audio is immersive and well-balanced. At the heart of the iPhone 15 is Apple's new A17 Bionic chip, which sets a new benchmark in smartphone performance. Coupled with improved machine learning capabilities and a more efficient GPU, it handles everything from everyday tasks to demanding applications with ease. The iOS integration is seamless, providing a user-friendly and intuitive interface. The camera system on the iPhone 15 is where Apple has made significant strides. The new sensor-shift optical image stabilization is a game-changer, particularly in low-light conditions. The images are sharp, with excellent dynamic range and color accuracy. The Night mode is more refined, capturing stunning details in dark environments.\nThe video capabilities are equally impressive. The Cinematic mode, which allows for depth-of-field adjustments, brings a professional touch to video recordings. The ProRAW and ProRes formats cater to professional photographers and videographers who demand higher control and quality. Battery life has always been a strong suit for iPhones, and the iPhone 15 continues this tradition. Even with heavy usage, the phone comfortably lasts a full day, thanks to the efficiency of the A17 chip and the larger battery. The fast charging and MagSafe wireless charging are convenient, though the absence of a charging brick in the box may be a point of contention for some users.The iPhone 15 introduces some noteworthy features. The integration of satellite connectivity for emergency services is a significant safety addition. The improved Face ID works flawlessly, even with masks, making it more practical in current times. The iPhone 15 is a remarkable smartphone that balances innovation with user experience. While it follows the evolutionary path rather than a revolutionary leap, the refinements in camera technology, performance, and unique features like satellite connectivity make it a compelling choice for anyone looking to upgrade. The higher price point might be a hurdle, but for those invested in the Apple ecosystem, the iPhone 15 offers a seamless and premium experience that's hard to match.", + "actionConfiguration.formData.textSummary.instructions.data": "Summarise the phone review in less than 250 words and highlight the key features." + } + }, + { + "label": "Inspection report", + "value": { + "actionConfiguration.formData.textSummary.input.data": "So, this Honda Civic here is 5 years old, got an automatic transmission, and a 1.2L engine. She's been on the road for about 50,000 km. Overall, she's doing okay, but there are a few things that need some attention. The brake pads are pretty much worn out. It's important to get these changed soon for safety, especially when you need to stop quickly or in wet conditions. Next, let's talk tires. The tread on these is getting pretty low, almost hitting the legal limit. Definitely need new ones for a better grip on the road, you don't want to be slipping around, especially when it's raining. Now, the battery is showing its age, not holding charge like it used to. Wouldn't be surprised if one day it just doesn't start the car. Better to swap it out now than be stuck later. The suspension bushings, too, are worn. Changing them will definitely improve the ride, make it smoother. The rest of the car – the engine, transmission, and the interior – they're all in pretty good shape. Just the usual signs of use, nothing major. If you keep up with regular maintenance and take care of these issues I've mentioned, she's going to keep running smoothly for a good long time. Regular check-ups, fixing these bits, and she'll be good as new.", + "actionConfiguration.formData.textSummary.instructions.data": "Summarise the inspection report in less than 100 words and highlight the most important points to be noted" + } + } + ] + } + ] + }, + { + "controlType": "SINGLE_COLUMN_ZONE", + "identifier": "TEXT-SUMMARY-Z2", + "children": [ { - "label": "Blog post", - "value": { - "actionConfiguration.formData.textSummary.input.data": "The iPhone 15, Apple's latest entry in its iconic smartphone series, is a testament to the company's continued innovation and commitment to user experience. This review delves into its design, performance, camera, battery life, and unique features, offering a comprehensive overview for both tech enthusiasts and the average consumer. The iPhone 15 sports a sleek design that follows Apple's philosophy of elegance and simplicity. The chassis, a harmonious blend of glass and stainless steel, feels robust yet luxurious. It’s slightly lighter than its predecessor, making it more comfortable to hold for extended periods. The standout design element is the bezel-less OLED display, which offers an immersive viewing experience. The IP68 rating ensures durability against dust and water, making it a reliable companion for everyday use. The Super Retina XDR display on the iPhone 15 is a visual feast. The colors are vibrant, and the blacks are deep, thanks to the OLED technology. With a 120Hz refresh rate, the responsiveness is fluid, whether scrolling through web pages or playing high-intensity games. The brightness levels are impressive, offering excellent visibility even in direct sunlight.\nAudio quality has also seen an upgrade. The speakers deliver richer and more detailed sound, enhancing the overall multimedia experience. Whether it's watching movies or playing games, the audio is immersive and well-balanced. At the heart of the iPhone 15 is Apple's new A17 Bionic chip, which sets a new benchmark in smartphone performance. Coupled with improved machine learning capabilities and a more efficient GPU, it handles everything from everyday tasks to demanding applications with ease. The iOS integration is seamless, providing a user-friendly and intuitive interface. The camera system on the iPhone 15 is where Apple has made significant strides. The new sensor-shift optical image stabilization is a game-changer, particularly in low-light conditions. The images are sharp, with excellent dynamic range and color accuracy. The Night mode is more refined, capturing stunning details in dark environments.\nThe video capabilities are equally impressive. The Cinematic mode, which allows for depth-of-field adjustments, brings a professional touch to video recordings. The ProRAW and ProRes formats cater to professional photographers and videographers who demand higher control and quality. Battery life has always been a strong suit for iPhones, and the iPhone 15 continues this tradition. Even with heavy usage, the phone comfortably lasts a full day, thanks to the efficiency of the A17 chip and the larger battery. The fast charging and MagSafe wireless charging are convenient, though the absence of a charging brick in the box may be a point of contention for some users.The iPhone 15 introduces some noteworthy features. The integration of satellite connectivity for emergency services is a significant safety addition. The improved Face ID works flawlessly, even with masks, making it more practical in current times. The iPhone 15 is a remarkable smartphone that balances innovation with user experience. While it follows the evolutionary path rather than a revolutionary leap, the refinements in camera technology, performance, and unique features like satellite connectivity make it a compelling choice for anyone looking to upgrade. The higher price point might be a hurdle, but for those invested in the Apple ecosystem, the iPhone 15 offers a seamless and premium experience that's hard to match.", - "actionConfiguration.formData.textSummary.instructions.data": "Summarise the phone review in less than 250 words and highlight the key features." - } + "label": "Input", + "Description": "Provide some text for AI to summarise", + "subtitle": "Provide some text for AI to summarise", + "configProperty": "actionConfiguration.formData.textSummary.input.data", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "controlType": "QUERY_DYNAMIC_TEXT", + "isRequired": true }, { - "label": "Inspection report", - "value": { - "actionConfiguration.formData.textSummary.input.data": "So, this Honda Civic here is 5 years old, got an automatic transmission, and a 1.2L engine. She's been on the road for about 50,000 km. Overall, she's doing okay, but there are a few things that need some attention. The brake pads are pretty much worn out. It's important to get these changed soon for safety, especially when you need to stop quickly or in wet conditions. Next, let's talk tires. The tread on these is getting pretty low, almost hitting the legal limit. Definitely need new ones for a better grip on the road, you don't want to be slipping around, especially when it's raining. Now, the battery is showing its age, not holding charge like it used to. Wouldn't be surprised if one day it just doesn't start the car. Better to swap it out now than be stuck later. The suspension bushings, too, are worn. Changing them will definitely improve the ride, make it smoother. The rest of the car – the engine, transmission, and the interior – they're all in pretty good shape. Just the usual signs of use, nothing major. If you keep up with regular maintenance and take care of these issues I've mentioned, she's going to keep running smoothly for a good long time. Regular check-ups, fixing these bits, and she'll be good as new.", - "actionConfiguration.formData.textSummary.instructions.data": "Summarise the inspection report in less than 100 words and highlight the most important points to be noted" - } + "label": "Additional Instructions", + "Description": "Provide additional instructions for the AI to tweak the summarization", + "subtitle": "Provide additional instructions for the AI to tweak the summarization", + "configProperty": "actionConfiguration.formData.textSummary.instructions.data", + "controlType": "QUERY_DYNAMIC_TEXT", + "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", + "initialValue": "", + "isRequired": false } ] - }, - { - "label": "Input", - "Description": "Provide some text for AI to summarise", - "subtitle": "Provide some text for AI to summarise", - "configProperty": "actionConfiguration.formData.textSummary.input.data", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "controlType": "QUERY_DYNAMIC_TEXT", - "isRequired": true - }, - { - "label": "Additional Instructions", - "Description": "Provide additional instructions for the AI to tweak the summarization", - "subtitle": "Provide additional instructions for the AI to tweak the summarization", - "configProperty": "actionConfiguration.formData.textSummary.instructions.data", - "controlType": "QUERY_DYNAMIC_TEXT", - "placeholderText": "Write some text or use {{ }} to reference a dynamic text value", - "initialValue": "", - "isRequired": false } ] } diff --git a/app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/body.json b/app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/body.json index 90620553a1bf..fe906d4b097b 100644 --- a/app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/body.json +++ b/app/server/appsmith-plugins/smtpPlugin/src/main/resources/editor/body.json @@ -88,13 +88,7 @@ "controlType": "QUERY_DYNAMIC_TEXT", "evaluationSubstitutionType": "TEMPLATE", "placeholderText": "Incredible body text" - } - ] - }, - { - "controlType": "SINGLE_COLUMN_ZONE", - "identifier": "BODY-Z6", - "children": [ + }, { "label": "Attachment(s)", "configProperty": "actionConfiguration.formData.send.attachments",