Processing Text Classifier Output

Describe the problem/error/question

Hi,
I am looking for an efficient way of processing the output of the Text Classifier node.
The node outputs an empty array through the category the AI model selects.
I hoped to get the output in a ‘category’ or similar variable, but that’s not the case. I also tried a Switch Node, but can’t figure out how to parse the output from the text classifier node.

Please share your workflow

Share the output returned by the last node

[
  {
    "category": null
  }
]

Information on your n8n setup

  • n8n version: 1.53.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Mac OS
1 Like

I’m afraid we don’t have an elegant solution for this at the moment; you can either set the fields in each output separately, or use a basic LLM chain.

3 Likes

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