Wingman configuration
Things to remember:
The order in which the widgets will appear in the UI is driven from the widgets block of configuration:
"widgets": [
"generic",
"headline",
"summary",
"genericheadline"
],Renaming the check box which was earlier named as 'Digital' & 'Print' can now be done under
widgetConfigby:
"checkBoxLabelName": "DIGI"Each instance can have it's own model and service provider, which are set by:
"serviceProvider": "<set service provider>",
"modelId": "<set model id>"For using your ChatGPT model the value of key
encryptedKeyPhraseis necessaryYou can now turn OFF or ON the saved result widget by setting the value of key
saveWidget":<true/false> as true to enable & false to disable.While using Bedrock models it is required to write prompts ending with these words: 'provided in XML tag' when asking to generate something. This is important to parse data correctly. However this is not required in case of OpenAI models.
XPath for setting the location of the result to be associated with allowed nodes in the writer body. Example Config:
"widgetConfig": { "Headline": { "digital": { "preText": "Suggest headlines for the article provided in XML tag.", "creativity": 5, "gatherResult": true, "checkBoxDefault": true, "checkBoxLabelName": "DIGI", "xPath": "headline", "providerAccessToken": "", "serviceProvider": "Bedrock", "modelId": "anthropic.claude-3-5-sonnet-20241022-v2:0" },Contextual Chat is set using the configuration:
"articleChat": { "creativity": 5, "providerAccessToken": "", "serviceProvider": "Bedrock", "modelId": "anthropic.claude-3-haiku-20240307-v1:0", "enabled": true }The results generated can be clubbed as single result using this configuration:
"gatherResult": true,
Full Configuration:
{
"host": "https://ai-eu-west-1.saas-prod.infomaker.io/v2",
"contextLimit": 2,
"encryptedKeyPhrase": "HhjiQuvUnNdeWjZ5K6F[^zxQ5^DwSTjo",
"widgets": [
"Generic",
"Headline",
"Summary",
"Genericheadline"
],
"widgetConfig": {
"Genericheadline": {
"digital": {
"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,
"gatherResult": true,
"checkBoxDefault": true,
"checkBoxLabelName": "DIGI",
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-v2:1"
},
"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,
"gatherResult": true,
"checkBoxDefault": true,
"checkBoxLabelName": "PR",
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-v2:1"
}
},
"Headline": {
"digital": {
"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,
"gatherResult": true,
"checkBoxDefault": true,
"checkBoxLabelName": "DIGI",
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-v2:1"
},
"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,
"gatherResult": false,
"headlineCount": 1,
"printHeadlineWordCount": 8,
"language": "en",
"checkBoxDefault": true,
"checkBoxLabelName": "PR",
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-v2:1"
}
},
"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,
"gatherResult": true,
"summaryCount": 5,
"checkBoxLabelName": "DIGI",
"checkBoxDefault": true,
"providerAccessToken": "",
"serviceProvider": "openai",
"modelId": "gpt-4-turbo"
},
"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,
"gatherResult": true,
"summaryCount": 2,
"checkBoxDefault": true,
"checkBoxLabelName": "PRINT",
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-v2:1"
}
},
"Generic": {
"digital": {
"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,
"gatherResult": true,
"checkBoxDefault": true,
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-instant-v1"
},
"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,
"gatherResult": true,
"checkBoxDefault": true,
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"checkBoxLabelName": "DIGItal",
"modelId": "anthropic.claude-instant-v1"
}
}
},
"saveWidget": true,
"articleChat": {
"creativity": 5,
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "anthropic.claude-3-haiku-20240307-v1:0",
"enabled": true
}
}Contextual chat independent of widgets
In Wingman version 3.1.0, enhanced contextual chat to work independently without relying on widget, so that user can interact with the assistant in a streamlined manner without additional UI components.
Sample Configuration for Contextual chat work independently without widgets:
{
"host": "https://ai-eu-west-1.saas-prod.infomaker.io/v2",
"contextLimit": 2,
"encryptedKeyPhrase": "HhjiQuvUnNdeWjZ5K6F[^zxQ5^DwSTjo",
"articleChat": {
"creativity": 2,
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"modelId": "eu.anthropic.claude-sonnet-4-5-20250929-v1:0",
"enabled": true
}
}Contextual chat works with default models.
If the modelID is not specified in the article chat configuration, contextual chat will work with the default models added in AWS configuration for Bedrock and Openai
Sample configuration for contextual chat works with default model
{
"host": "https://ai-eu-west-1.saas-prod.infomaker.io/v2",
"contextLimit": 2,
"encryptedKeyPhrase": "HhjiQuvUnNdeWjZ5K6F[^zxQ5^DwSTjo",
"articleChat": {
"creativity": 2,
"providerAccessToken": "",
"serviceProvider": "Bedrock",
"enabled": true
}
}Last updated