Webhook trigger in n8n

Hey i want to use webhook trigger in n8n my question is if i need to pass some query params to webhook as a GET request i will be encoding these and sending but looks like the webhook trigger doesnot decode the query params is it something i need to implement manually?

Describe the problem/error/question

What is the error message (if any)?

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

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:

Hi @mylearnings_abu Welcome!
N8N’s webhook node actually automatically parse URL encoded query parameters, you can check that $json.query here, as you do not need any further manual parsing after that, basically if you sent:
GET https://your-n8n.url/webhook/path?name=John%20Doe&city=New%20York
so now you can access those decoded values in the next node with:

{{ $json.query.name }}   // => "John Doe"
{{ $json.query.city }}  // => "New York"

although this is not needed, but if you like you can manually decode those with:
{{ $json.query.yourParam.urlDecode() }}
just make sure your webhook node respond is set to Respond To Webhook. And things should be good.

Thanks for the reply will try

welcome to the n8n community @mylearnings_abu
you don’t need to implement manual decoding for standard GET query parameters. A good way to verify it is to inspect the Webhook node output and compare the raw URL with the values inside the query object. If something still looks encoded, I would first check whether the calling system is sending the value double-encoded rather than assuming the Webhook node is failing to decode it.