UK Postcode checker
# 🤝help
s
Hey guys, does anyone know how to incorporate a postcode checker? I have a solar client and he wants a postcode checker in his bot. I've set up a knowledge base that contains all of the locations and area codes covered by this solar company, the only thing that I'm not sure how to do is to validate the 2nd part of the postcode. Example: Do you cover Manchester? This works as Manchester is in the KB. Do you cover M1 1AG? This works as 'M1' is in the KB. But if I ask it: Do you cover M1 123 or any other invalid postcode, it will work when it shouldn't. This is the part I'm trying to figure out. Any help would be great. I can provide screenshots if needed.
p
@silly-school-68907 How about you use something like this:https://postcodes.io/ to validate postcode before returning answer
s
Amazing, I will check this out👍
p
no worries, let me know how it goes