Configuration

These are the configurations that are used in the Wingman plugin.

{
    "id": "io.infomaker.wingman",
    "name": "im-wingman",
    "style": "https://plugins.writer.infomaker.io/v1/infomaker/im-wingman/1.1.0/style.css",
    "url": "https://plugins.writer.infomaker.io/v1/infomaker/im-wingman/1.1.0/index.js",
    "mandatory": false,
    "enabled": true,
    "data": {
        "host": "https://ai-eu-west-1.saas-stage.infomaker.io",
        "contextLimit": 2,
        "widgets": [
            "headline",
            "summary",
            "generic"
        ],
        "widgetConfig": {
            "headline": {
                "digital": {
                    "preText": "Suggest headlines for the article provided in XML tag. Analyze the main theme of the article and create a clear and direct headline.",
                    "creativity": 5,
                    "headlineCount": 2,
                    "digitalHeadlineWordCount": 35,
                    "language": "en",
                    "checkBoxDefault": false
                },
                "print": {
                    "preText": "Suggest headlines for the article provided in XML tag. If the article has a strong local connection, reflect this in the headline.",
                    "creativity": 5,
                    "headlineCount": 2,
                    "printHeadlineWordCount": 8,
                    "language": "en",
                    "checkBoxDefault": false
                }
            },
            "summary": {
                "digital": {
                    "preText": "Suggest summaries for the article provided in XML tag. Act as a news editor and your task is to suggest a click bait social media teaser for the article.",
                    "creativity": 5,
                    "summaryCount": 2,
                    "language": "en",
                    "digitalSummaryWordCount": 40,
                    "checkBoxDefault": false
                },
                "print": {
                    "preText": "Suggest summaries for the article provided in XML tag. Act as a news editor and your task is to suggest a summary for the article.",
                    "creativity": 5,
                    "summaryCount": 2,
                    "language": "en",
                    "printSummaryWordCount": 100,
                    "checkBoxDefault": false
                }
            },
            "generic": {
                "digital": {
                    "preText": "You are a newsroom editor whose job is to generate interesing captions, important facts & seo keywords for the text provided in the XML tag.\n\n Please generate the following:\n\n 1. Generate a caption for facebook, keeping the facebook post headline parameters in mind & generate each result with a prefix text Facebook: \n\n 2. Please identify & generate 3 quotes from the text which are not more than 35 words each  & generate each result with a prefix text Quote: \n\n 3. Please analyze the input text ang suggest three SEO keyword improvements with the original word from the text with its line number followed by - and then the new seo optimized suggested word with prefix text SEO: \n\n 4. Do not generate anything else pecified above.",
                    "creativity": 1,
                    "language": "en",
                    "checkBoxDefault": true
                },
                "print": {
                    "preText": "You are a News Editor of a News Firm and your task is to suggest headlines for the article provided in  XML tag.\n\nPlease use professional tone while generating headlines.",
                    "creativity": 5,
                    "language": "en",
                    "checkBoxDefault": false
                }
            }
        }
    }
}

Configuration Details:

"data": {
    "host": "https://ai-eu-west-1.saas-stage.infomaker.io",
    "contextLimit": 2,
    "widgets": [
        "headline",
        "summary"
    ],

contextLimit : Max. limit of context tags that can be sent in the prompt. widgets : Widgets that should be enabled in Wingman plugin

 "widgetConfig": {
        "headline": {
            "digital": {
                "preText": "Generate a headline",
                "creativity": 5,
                "headlineCount": 2,
                "digitalHeadlineWordCount": 16,
                "language": "en",
                "checkBoxDefault": false
            },
            "print": {
                "preText": "Generate a headline",
                "creativity": 5,
                "headlineCount": 2,
                "printHeadlineWordCount": 12,
                "language": "en",
                "checkBoxDefault": false
            }
        },

PreText : This is the field where the user will send the custom prompt to generate the headline. *Note: In case of AWS Bedrock it is recommended to end your custom prompt with these words - ‘in the XML tag’

creativity : This determines the temperature, between 1-5, which defines randomness in result. 1 being least to 5 being highest. headlineCount : The total headline results to generate. digitalHeadlineWordCount : The headline result word count (approx.) to generate for digital headline printHeadlineWordCount : The headline result word count (approx.) to generate for print headline language : Result language code displayCount : Display the number of results before show more button "checkBoxDefault": false : By default check box should be checked or not

 "summary": {
            "digital": {
                "preText": "Generate a summary",
                "creativity": 5,
                "summaryCount": 2,
                "language": "en",
                "digitalSummaryWordCount": 10,
                "checkBoxDefault": false
            },
            "print": {
                "preText": "Generate a summary",
                "creativity": 5,
                "summaryCount": 2,
                "language": "en",
                "printSummaryWordCount": 40,
                "checkBoxDefault": false
            }

PreText : This is the field where the user will send the custom prompt to generate the summary. *Note: In case of AWS Bedrock it is recommended to end your custom prompt with these words - ‘in the XML tag’

creativity : This determines the temperature, between 1-5, which defines randomness in result. 1 being least to 5 being highest. summaryCount : The total summary results to generate

digitalSummaryWordCount : The summary result word count (approx.) to generate for digital summary printSummaryWordCount : The summary result word count (approx.) to generate for print summary displayCount : Display the number of results before show more button "checkBoxDefault": false : By default check box should be checked or not

 "print": {
                    "preText": "You are a News Editor of a News Firm and your task is to suggest headlines for the article provided in  XML tag.\n\nPlease use professional tone while generating headlines.",
                    "creativity": 5,
                    "language": "en",
                    "checkBoxDefault": false
                }

PreText : This is the field where the user will send the custom prompt to generate the generic results. *Note: In case of AWS Bedrock it is recommended to end your custom prompt with these words - ‘in the XML tag’

creativity : This determines the temperature, between 1-5, which defines randomness in result. 1 being least to 5 being highest.

"checkBoxDefault": false : By default check box should be checked or not

Last updated