Extract Text from API responde1

Hello everyone.

In Incoming Webhook i receive in body the following data: “text”: "run 12345 34999937632,

here are JSON receive data:

    "headers": {
      "host": "MYN8NHOST",
      "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36",
      "content-length": "316",
      "accept": "*/*",
      "accept-encoding": "gzip,deflate",
      "content-type": "application/json",
      "x-forwarded-for": "",
      "x-forwarded-host": "MYN8NHOST",
      "x-forwarded-port": "443",
      "x-forwarded-proto": "https",
      "x-forwarded-server": "bd92f8504304",
      "x-real-ip": ""
    "params": {},
    "query": {},
    "body": {
      "token": "123",
      "bot": false,
      "trigger_word": "corrida",
      "channel_id": "jfWFbvQadmNQ6xYtz",
      "channel_name": "geral",
      "message_id": "JvKDMGkE873bFwP8B",
      "timestamp": "2022-02-15T17:16:46.552Z",
      "user_id": "8nZwiRHgCjxwyqKMf",
      "user_name": "admin_rc",
      "text": "run 12345 34999937632",
      "siteUrl": "URL JSON ORIGE"

how can i break up the values:12345 and 34999937632 and add them in some parameter for later use?

You can use a function node or a set node. I used a set node, check the example below:


Thx Ricardo.

1 Like