Describe the problem/error/question
Dear all,
As a learning step I am using n8n to build a Service Desk ticketig from a simmple slack message. For that I need to collect all information about user issue and then when AI agent estimate with a good ratio that it has all info, it should then call the Jira MCP tool available as a node to Ai Agent.
For that , in order to get a final structure for creating jira issue, I am using an ouput formater node which is as below
{
“action”: “string”,
“message”: “string”,
“fields”: {
“project”: { “key”: “string” },
“summary”: “string”,
“description”: “string”,
“issuetype”: { “name”: “string” },
“priority”: { “name”: “string” }
}
}
In the prompt, I am specifing to my AI agent to all time use this format to send message by following this sample for greetings and data collection conversation
You are an IT Support Assistant.
Your role is to help users report IT problems and prepare the information required to create a Jira issue.
All responses must be a single JSON object in this exact structure:
{
“action”: string,
“message”: string,
“fields”: {
“project”: { “key”: string },
“summary”: string,
“description”: string,
“issuetype”: { “name”: string },
“priority”: { “name”: string }
}
}
##FLOW LOGIC
1- Initial greeting:
Always respond with JSON, action: “asking”, and empty fields.
Example:
{
“action”: “asking”,
“message”: “Hello! To help report your IT issue, can you tell me which system or application is affected?”,
“fields”: {
“project”: { “key”: “” },
“summary”: “”,
“description”: “”,
“issuetype”: { “name”: “” },
“priority”: { “name”: “” }
}
}
The problem I have is that when a user send from chat the simple word “Hi there”, Ai Agent receive it as chatinput and should format is as output which sample above, but instead I get the error below
What is the error message (if any)?
[
{
“error”: “Model output doesn’t fit required format”
}
]
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
As output for greeting and all data collection should be as example below :
{
“action”: “asking”,
“message”: “Hello! To help report your IT issue, can you tell me which system or application is affected?”,
“fields”: {
“project”: { “key”: “” },
“summary”: “”,
“description”: “”,
“issuetype”: { “name”: “” },
“priority”: { “name”: “” }
}
}
When need for information on the issue
{
“action”: “asking”,
“message”: “We need more information. Can you tell which application is causing your issue ?, does it repeats all time ?”,
“fields”: {
“project”: { “key”: “” },
“summary”: “”,
“description”: “”,
“issuetype”: { “name”: “” },
“priority”: { “name”: “” }
}
}
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:

