The use of HTTP requests is crucial for integrating numerous services. In this article, we'll explain how ElectroNeek works with HTTP requests on a simple example - our bot will read emails and create deals in a CRM via API.
![Electroneek image](/_next/image/?url=https%3A%2F%2Felectroneek.com%2Fwp-content%2Fuploads%2F2020%2F04%2Femail-and-crm-automation-with-http-requests.jpg&w=3840&q=75)
The bot reads typical notification emails from a Gmail mailbox (an example can be seen in the screenshot below).
![Electroneek image](/_next/image/?url=https%3A%2F%2Felectroneek.com%2Fwp-content%2Fuploads%2F2020%2F04%2Ffinal_5e8e177fe841b700151bbf9f_751714-1024x576.jpeg&w=2048&q=75)
First, the bot checks for emails. In this example, we use a mailbox with a predefined number but the algorithm can be easily tweaked to check for new emails in the inbox and to loop through them.
![Electroneek image](/_next/image/?url=https%3A%2F%2Felectroneek.com%2Fwp-content%2Fuploads%2F2020%2F04%2Ffinal_5e8e1189e841b700151b5eb4_950074-1024x576.jpeg&w=2048&q=75)
Next, the bot parses email messages and prepares JSON for HTTP requests according to CRM's API (we use HubSpot as a CRM in this example). After that the bot will send HTTP request to API, store the response and repeat the process with other emails.
![Electroneek image](/_next/image/?url=https%3A%2F%2Felectroneek.com%2Fwp-content%2Fuploads%2F2020%2F04%2Ffinal_5e8e1a2a4477dd0013493ab3_542939-1024x576.jpeg&w=2048&q=75)
Finally, the bot opens Chrome, logs in HubSpot and goes to deals to show newly created records.
ElectroNeek can help you automate your work with any API-based systems with no sweat. More than that, you can integrate your legacy / no-API systems with API-systems with ElectroNeek (read more about it here). And if you want to know more details about how ElectroNeek can improve your business processes - reach out to our automation expert.