I have a chatwoot webhook node that returns custom attributes:
“custom_attributes”:
“rua”: “vilebaldo aguiar”, (rua = street)
“cidade”: “fortaleza”, (cidade = city)
“numero”: “3220”, (numero = number)
After that, I make an http request from the viacep api to return postal codes.
The problem is that the api returns several postal codes based on ranges of numbers.
How do I create a javascript code that returns the corresponding postalcode if the number is between the right range?
7NR9jhpgBP1AdIfl
n8n
March 28, 2024, 12:53pm
2
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:
bartv
March 28, 2024, 2:26pm
3
Can you share an example of the output?
marcelohhirata:
7NR9jhpgBP1AdIfl
What’s this?
liam
March 28, 2024, 9:57pm
4
marcelohhirata:
7NR9jhpgBP1AdIfl
@bartv I think that’s the ID of his workflow.
@marcelohhirata Please see the video below on how to embed a workflow into the forum for us to see
Please also share a sample of the response from the postal code API as we will need that to write any code
bartv
April 2, 2024, 1:03pm
5
@marcelohhirata do you still need help with this? If so, we’ll need a little more information to better understand the problem.
system
Closed
July 1, 2024, 1:03pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.