Maps using an8 and air table and appify at the end of this video you will be able to create a database like this one where you you'll just need to enter the keywords and the location check the box and then you will be getting results in another table so that's really useful because then at the back of that we can run an Noto another automation where we can look for the business owner verify facts and make an online profile about this business owner and then create a highly personalized AI email which will get you anywhere
between 5 to 7% reply rate if the offer is good so if you want the templates you will just need to uh join the free school community so by joining the community you will be able to deploy templates in just uh matter of minutes so here clicking import file you'll have a Json file here like this one and then you will you will have the automation ready to go and so same for the the database so let's dive in we will first build the uh database and then the uh two automation for for air table
and then we will um build the workflow as well so we can do one and then the other we need to do everything at the same time because we need to pull data in order to be able to create those automations so first of all let's create the uh database so you need a a fresh database so we will create one from scratch so here create if you don't have a professional account you will need to create one so that's Google scraping you can choose any color you like so we'll go for blue just here
we'll go for keyword single line of text that we can delete it we'll delete the assign to uh the statu we will need this one so here I'm going to add a location single line of text record ID so really pay attention to the uh uh uppercase and lower case otherwise it won't work here we look look for a formula formula we'll use one that's already predefined close the parenthesis we'll add another field which is going to be a single line of text and that's going to be the uh run ID so run ID create
field we can hide those two Fields here we don't need to see them will modify the statues so that's going to be not to do but run in progress and then here run completed I'll just reorganize that okay that's looking good I'll just rename this table and that's going to be query I REM uh rename this view here that's going to be all queries you'll understand why we do that because if we want to uh tag the queries for instance or know which query has been run uh it's it's good to have um everything separated
here so that's the first table next we'll create another one so that's going to be start from scratch and here that's going to be the result so business name delete everything else delete field delete field and I can leave this one just for if we need uh if we need to run another another automation it can be uh it can be useful so here I'm going to go for rating I want to I want to get the rating if possible so that's going to be a number uh here decimal just one the number of writing
that's going to be a number here we don't need decimals so that's going to be zero create fi the website we need that if we want to scrape the website afterwards so that's going to be a URL it's going to be long text uh we can start with that we can we can uh add more columns as we go along so I'm just going to go again with the record ID that's going to be a formula even if I don't use this one I like to have it in there because we are we might need
it later on so I'll hide it okay so now we have the query we have the result we need to build the automations so that's pretty straightforward we go to automation we're going to go when a record matches condition we're going to go to query I think we forgot to create the trigger yeah we forgot to create the trigger so I'm going to create the trigger so that's going to be a checkbox and that's going to be run go I'll check it I'm going to just create an example here that I leave it blank so
automation so when R go is checked okay now we have the the data here we will want to run a script so here you'll just need to copy and paste this value here and I'll explain in a in a minute what it does so basically this is passing the record ID so the record ID is located inside the uh row here so I will uh just unhide it so this is passing this value inside the web hook and so by using the record ID we'll be able to pull the data from this row so it's
really really straightforward uh as you can see here there there are underlined in red it means that the the variables don't yet exist so we'll create them so here we'll create it record ID so we'll pull the record ID from the uh at table record ID so record ID and web hook URL so at this stage we want to come to n 10 uh I have another video showing you how to uh install it add the workflow create a first step so that's going to be a web hook that's going to be a get request
and here we don't want un authentification method so we'll just copy the link and we'll just paste it in here so we'll just finish editing so if we want to pass the data what we need to do is to go to click listen for test event and here Test action so this is testing you will see that the icon in your N1 browser bar will change uh so it will will go from like a process thing to a play button and so as you can see here the the trigger has worked and here we have
the record ID parameter that's the one we were looking for so at this stage we want to get uh air table node we want to get record so choose the credentials that's going to be just need to make sure that you're actually using the uh the right table query record ID so just drag and drop test and here as you can see this is working well we need to create another automation we will trigger it when a web Hook is received here we need to uh copy this link we're going to go to appify if
you don't have an account you need to create one click onto store and then look for the Google Map extractor here you will need to create an integration so it's very very easy to do add an integration here you need to choose an HTTP web hook which will run when this is succeeded and this is going to send the data to the link we've just copied now we'll need to uh save this okay now we'll need to go to API endpoint you need to copy this first uh value so basically when a post request is
made this is going to trigger this is going to run the actor so I'll just copy it and here in n8n I'll just delete that so that you can see the process I'll select an HTTP request that's going to be a post I'll just paste the the URL in here EDS and then body so don't be frightened by that it's really really easy so here we'll go back to the uh to the uh API documentation we'll go to a input input rather uh I always go for the um search by filtering category I don't search
by search terms so here I'll go to Json and so basically here have all the everything I need so that's going to be a body content and instead to use the the fields below even though we could I'll be using a Json I'll just paste that in here and I will just need to replace those values from the previous uh values that have been sent by the table database here I'm just missing a other parameter which is the the content type so as you can see here to run this actor we'll need to pass the
content type so that's case sensitive really pay attention to that paste it in here and then typically the application SL Json now we'll paste this I'll save it back to canva and so here if I uh test the workflow this is going to uh run the uh the automation so here when a web Hook is received is not what we are looking for we are looking for this one here so this we will trigger it manually Test action that's it it's been triggered and it worked so we uh we've received the value and we we
have created a run so if we look into uh appify run and here as you can see the the run is currently processing so at this stage we just need to update the uh air table we'll update the record we'll select the credentials that's going to be from the same database so Google Map scraping that's going to be quiry here we look for the the uh air table ID so that's really really really important because you you don't want to uh um mixing things up here the the Run ID as you can see so we
will just drag and drop the Run ID test it and now if we save it and head back into a air table we'll just unhide the field so that you can see and as you can see here the Run ID has been created so next we will want to just polish the uh the automations up a little bit uh so here we look for the update record we'll go for query here we look for the air table record ID and here we'll go for statues and run in progress generate a preview that's it next we
want to turn this automation on so I forgot to mention it but here as you can see the web hook AS Slash oh sorry uh Dash test so this is only done so that we can uh we can do the mapping so uh when we go into production we want to remove that and just leave web hook uh but it's not the time yet I will show you when to do it uh next we will want to go to uh the automation again we'll want to uh just remove this and instead we'll move this over
here instead we'll use switch node and here as you can see there is no value because the value was not entered inside the uh database so we will need to create it and we will need to uh okay run in progress I just delete that we need to trigger it manually again Test action okay this has been triggered we'll just hook it up here we we want to uh drag the Json statues and here run in progress here you want to make sure you ignore case so I just delete that ignore case okay and had
uh routing again so here that's going to be again the same expression but instead to be run in progress this is going to be run completed uh as as listed here run completed again this is Cas sensitive so you really need to pay attention so the the way it works is that when the uh statues is run in progress it goes through this branch and when the the um uh status is run completed uh it runs through this branch so I will save this here to make sure that we can operate the branching we need
to update the status so the status gets updated when the web Hook is received and the web Hook is received when the actor successfully run and you can verify that it worked by checking the results here so this is okay so all we will need to uh uh get from this is just the Run actor ID and we'll basically verify that this value is equal to the to the value here so the way we'll do that is that we'll go and uh find the record so that's going to be query condition and here we're going
to check for the Run ID uh here we want to make sure that it equals we can go for contain also uh click check the um uh Dynamic here and then we'll go for body we'll go for web event Data actor run ID so when run ID contains or equals the uh run actor ID in this case we'll test test it we found the record we'll just update it so update the record we'll go to query going to look for the record ID from the F record so that's going to be a table record ID
the field that we are going to change is the um status so we we we can use this field also but we're going to use the the the status and we'll change it to run completed so here at this stage when a web Hook is received we will look that the record matches the record and the Run ID data that contain inside the database and if this is the case we'll just uncheck the Run go trigger and we'll set the statu to run completed at this stage what we want to do is to run another
script so here we go for run script I'll just copy and paste this code uh if you are member of the um free community you can you can just copy and paste it otherwise you just need to make a screenshot and type it so here we look for the record ID and here web hook URL at this stage we want to go back to the n10 workflow just double click copy the link paste it in the web hook URL here and here we want to look for the uh fine record that's going to be record
air table record ID listen for test event so this is currently processing you will see that the uh the icon will change here the test run successfully so here we might need to push it manually okay we found the record so we can see that the branching is operating successfully so here the run is in progress uh and the run is completed here we can see that the statu is run completed so this is going to branch number one so this is all working as it should you'll want to create an http request so the
HTTP request is a get method and so you want to have exactly that obviously you need to change the AP API key I will change it after the video obviously and you need to make sure that the uh Json actor run ID matches the the actor run ID that you get from the uh air table record next you need to uh split out so basically the this is going to change one item into 50 and then you will update it inside the uh a table here so that's really really simple so next what you need
to do is to go to uh data make sure that you have uh the enough queries and then just click the uh checkbox and then you will see the data populating in here so it's not that straightforward but it's really really powerful so it's worth spending an hour just doing it and if you want you can join the free school community and you will be able to access those templates and just deploy it in a few minutes thank you bye-bye