From 47c7051ebdf6fb314787b7160112f7cfdffccef7 Mon Sep 17 00:00:00 2001 From: "Douglas.Romao@fellowmind.dk" Date: Mon, 2 Sep 2024 20:16:55 -0300 Subject: [PATCH 1/2] Adding the process text to json prompt for ai builder --- .../ai-builder/process-text-to-json/README.md | 31 +++++++++++++++++++ .../process-text-to-json/en-us/prompt.md | 10 ++++++ .../process-text-to-json/pt-br/prompt.md | 10 ++++++ 3 files changed, 51 insertions(+) create mode 100644 prompts/ai-builder/process-text-to-json/README.md create mode 100644 prompts/ai-builder/process-text-to-json/en-us/prompt.md create mode 100644 prompts/ai-builder/process-text-to-json/pt-br/prompt.md diff --git a/prompts/ai-builder/process-text-to-json/README.md b/prompts/ai-builder/process-text-to-json/README.md new file mode 100644 index 0000000..e83ca4f --- /dev/null +++ b/prompts/ai-builder/process-text-to-json/README.md @@ -0,0 +1,31 @@ +# PROCESS TEXT TO JSON + +## Description + +This prompt helps with converting text files into JSON structure based on the pre-defined separators. + +## Prompt + +### Supported Language(s) + +[Brazilian Portuguese](./pt-br/prompt.md) +[English](./en-us/prompt.md) + +## Authors + +Solution|Author(s) +--------|--------- +Process Text to JSON | [Douglas Romão](https://www.github.com/douglasromao) ([@LINKEDIN-USERNAME](hhttps://www.linkedin.com/in/douglas-romao/)), Romão's +Process Text to JSON | [Renato Romão](https://www.github.com/renatoromao) ([@LINKEDIN-USERNAME](hhttps://www.linkedin.com/in/renatoromao/)), Romão's + +## Minimal Path to Awesome + +* Copy the prompt +* Paste prompt into AI Builder +* Be happy 🙂🚀 + +## Disclaimer + +**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** + + diff --git a/prompts/ai-builder/process-text-to-json/en-us/prompt.md b/prompts/ai-builder/process-text-to-json/en-us/prompt.md new file mode 100644 index 0000000..05832b8 --- /dev/null +++ b/prompts/ai-builder/process-text-to-json/en-us/prompt.md @@ -0,0 +1,10 @@ +You are a data processign assistant. +I am going to send you a content in text format coming from an integration, and I need you to convert this to JSON format. +Make sure that: +- The content's first line contains the content strucuture with the JSON properties (look for [ADD SOME SAMPLES SO IT HELPS THE PROMPT IDENTIFIYING THE COLUMNS]); +- The file contains multiple lines, therefore the result must be an array +- Properties and content will be separated using the [ADD THE NAME OF THE CHARACTER] character + +Here is the text: [Text] + +The outcome should contain only the content without any additional information and without the standard JSON command. \ No newline at end of file diff --git a/prompts/ai-builder/process-text-to-json/pt-br/prompt.md b/prompts/ai-builder/process-text-to-json/pt-br/prompt.md new file mode 100644 index 0000000..6d11fec --- /dev/null +++ b/prompts/ai-builder/process-text-to-json/pt-br/prompt.md @@ -0,0 +1,10 @@ +Você é um assistente de processamento de dados. +Vou enviar um conteúdo em formato texto vindo de uma integração e preciso que você converta no formato JSON. +Certifique-se de que: +- A primeira linha do arquivo contém as propriedades da estrutura do conteúdo do JSON (procure por [ADICIONE EXEMPLOS PARA AJUDAR O PROMPT A ENCONTRAR AS COLUNAS CORRETAS]); +- O arquivo contém múltiplas linhas, portanto o resultado deverá ser um array +- As propriedades e conteúdos são separados pelo caracter [ADICIONE O CARACTER SEPARADOR, POR EXEMPLO HASHTAG] + +Aqui está o texto: [Texto] + +O resultado deverá ser somente o conteúdo, sem nenhuma informação adicional nem o comando padrão do JSON. \ No newline at end of file From 35be09af8c0c59f13355a8135f627a76c4c82c03 Mon Sep 17 00:00:00 2001 From: "Douglas.Romao@fellowmind.dk" Date: Mon, 2 Sep 2024 20:18:13 -0300 Subject: [PATCH 2/2] Adjusting typo --- prompts/ai-builder/process-text-to-json/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prompts/ai-builder/process-text-to-json/README.md b/prompts/ai-builder/process-text-to-json/README.md index e83ca4f..2be4969 100644 --- a/prompts/ai-builder/process-text-to-json/README.md +++ b/prompts/ai-builder/process-text-to-json/README.md @@ -15,8 +15,8 @@ This prompt helps with converting text files into JSON structure based on the pr Solution|Author(s) --------|--------- -Process Text to JSON | [Douglas Romão](https://www.github.com/douglasromao) ([@LINKEDIN-USERNAME](hhttps://www.linkedin.com/in/douglas-romao/)), Romão's -Process Text to JSON | [Renato Romão](https://www.github.com/renatoromao) ([@LINKEDIN-USERNAME](hhttps://www.linkedin.com/in/renatoromao/)), Romão's +Process Text to JSON | [Douglas Romão](https://www.github.com/douglasromao) ([@LINKEDIN-USERNAME](https://www.linkedin.com/in/douglas-romao/)), Romão's +Process Text to JSON | [Renato Romão](https://www.github.com/renatoromao) ([@LINKEDIN-USERNAME](https://www.linkedin.com/in/renatoromao/)), Romão's ## Minimal Path to Awesome