Make.com (previously Integromat) is a powerful cloud-based IFTTT automation and integration platform. It enables everyone to connect various web applications, data sources, and services to automate workflows and streamline data processing.
You can trigger Make.com scenarios from HARPA AI using webhooks. HARPA monitors changes on websites and sends events to Make.com.
Navigate to Make.com.
Click Get started free button. You'll be directed to a page where you can either sign up with your email address or your Google or Facebook account.
Open HARPA AI by clicking its icon in the top right corner or pressing Alt+A (on Windows) and ^+A (on Mac).
Type / in chat and click CREATE button at the top.
You'll see an example of a simple custom command. Delete all steps as you won't need them.
Сlick the ADD STEP button and pick the REQUEST step.
Add the GPT step and move it to the first position.
Please note that:
We suggest formulating this prompt as follows:
You are a Data Research AI Agent.
Your task is to extract data from a web page and respond with JSON text as requested.
Follow these instructions:
- Analyze the product web page and find its name, price, and formulate a brief description of the product (maximum 200 characters).
- Provide the price as a number without currency symbols.
- Respond in {{language}}.
- Be concise and to the point.
- Respond with a JSON array containing objects with 4 fields: 1 - product, 2 - description, 3 - price, 4 - url.
- Write nothing other than the JSON.
- Wrap your JSON response in a code block.
Example JSON response:
{
"product": "Product name",
"description": "Brief product description",
"price": 1000,
"url": "page url"
}
Product URL: {{url}}
Product webpage data: {{page}}
JSON response:
INTERMEDIATE TESTING №1
If everything worked correctly, a JSON object containing data should have been sent to Make.com.
INTERMEDIATE TESTING #2
Connect Make.com to your Google account. This needs to be done only once.
There are two options for obtaining a list of links to process:
If you already have a list of links and can send it to HARPA
If you don't have a list of links and want to automate the search
Open HARPA and create a new custom command, let's call it "Automate information parsing"
Delete all example steps and add the ASK step that will request a comma-separated list of links from the user and save it in the {{urls}} parameter
let links = [];
const linkRegex = /(https?:\/\/\S+?)(?=[,;\n\s\]]|$)/gi;
try {
// any data to string
const urlString = String(urls);
// split string
const urlParts = urlString.split(/[,;\n\s]+/);
urlParts.forEach(part => {
const matchedLinks = part.match(linkRegex) || [];
links = links.concat(matchedLinks);
});
// delete "
links = links.map(link => link.replace(/^"|"$/g, ''));
// delete duplicates
links = [...new Set(links.filter(Boolean))];
} catch (error) {
return false;
}
return links;
INTERMEDIATE TESTING №3
Save the command and run it.
Send any links in response to the ASK step.
If JS works correctly, you will see it.
Add a NAVIGATE step that will open the link {{item}}
Add a CONTROL step that will "Show Frame" HARPA AI (this is not a mandatory step, but it's added for convenience)
Open HARPA and create a new custom command, let's call it "Find and export product info"
Delete all example steps and add the ASK step that will request the product search query text and save it in the {{query}} parameter.
Note that in the example we used the "inurl:" search operator, which helps find websites with URLs containing a specific word. In our case - Amazon.
Click here to learn more about Search options in HARPA.
Add a NAVIGATE step that will open the link {{item.url}}
Add a CONTROL step that will "Show Frame" HARPA AI (this is not a mandatory step, but it's added for convenience)
All rights reserved © HARPA AI TECHNOLOGIES LLC, 2021 — 2024
Designed and engineered in Finland 🇫🇮