How do i create 2 fields from output?

Here is an example of the output from AI: 7pm this evening,11am tomorrow

I know this must be super basic, but I’m having trouble figuring out how to get these into 2 fields.

When I search for instructions or guides, everything seems so advanced and complex and I can’t seem to find super basic stuff!

How do I get past the first hurdle of learning the basics?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

@jakeThai , will this work for you?

Explanation

  • split() function splits the string by the character you choose, here “comma” (,) producing an array of the parts that were separated by that charachter
  • You reference the parts by index starting from 0 onwards.

Thus, the string “7pm this evening,11am tomorrow” when split by comma becomes an array (list) of two items (as there is only one comma). The first item referenced as [0] (meaning at the first position) becomes “7pm this evening” and the 2nd part referenced by [1] (meaning at the 2nd position) becomes “11am tomorrow”.

Thank you that works great!