AI Agent output to be a Table form

My AI Agent table output is as below:

{\n “sentiment”: “positive”,\n “category”: “technical_issue”,\n “urgency”: “medium”,\n “summary”: “User needs guidance on using ‘Edit Fields’ node instead of Python or Code node for data extraction in n8n”,\n “needs_human”: false,\n “suggested_response”: “Thank you for reaching out! You can indeed achieve data extraction using the ‘Edit Fields’ node in n8n. If you need further assistance, feel free to ask.”\n}

I want the ouput to be a Table form with columns ‘sentiment’, ‘category’, ’urgency’, …. ‘suggested_response’. How and what should I do?

Its JSON is as below:

[

{

“output”: “{\n \“sentiment\”: \“positive\”,\n \“category\”: \“technical_issue\”,\n \“urgency\”: \“medium\”,\n \“summary\”: \“User needs guidance on using ‘Edit Fields’ node instead of Python or Code node for data extraction in n8n\”,\n \“needs_human\”: false,\n \“suggested_response\”: \“Thank you for reaching out! You can indeed achieve data extraction using the ‘Edit Fields’ node in n8n. If you need further assistance, feel free to ask.\”\n}”

}

]

Or I think I need a Code node to transform to table form? what would be the code for that Code node in Python?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.