{"id":4474,"date":"2025-01-23T15:25:37","date_gmt":"2025-01-23T07:25:37","guid":{"rendered":"https:\/\/five.co\/?p=4474"},"modified":"2025-04-24T08:30:44","modified_gmt":"2025-04-24T00:30:44","slug":"how-to-extract-emails-from-text-in-5-seconds","status":"publish","type":"post","link":"https:\/\/preview-php85.dzine.org\/five\/blog\/how-to-extract-emails-from-text-in-5-seconds\/","title":{"rendered":"How to Extract Emails From Text In 5 Seconds"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Learn How to Use AI to Extract Emails from Text<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Extracting email addresses from text is a common yet tedious task for developers, marketers, and data analysts. However, new tools, such as rapid application development environments and AI give us everything we need to fully automate this task. Whether emails are hidden in website code, documents, or freeform text, efficient tools can identify and compile them into organized lists at the click of a button. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By automating this process, you save time, avoid manual errors, and ensure no valuable contact information is overlooked. This guide covers a simple method of extracting emails from text, using <a href=\"https:\/\/preview-php85.dzine.org\/five\" target=\"_blank\" rel=\"noreferrer noopener\">Five<\/a> and an AI tool or LLM, such as OpenAI&#8217;s ChatGPT.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<div class=\"root-eb-toc-31ob0 wp-block-essential-blocks-table-of-contents\"><div class=\"eb-parent-wrapper eb-parent-eb-toc-31ob0 \"><div class=\"eb-toc-container eb-toc-31ob0  eb-toc-is-not-sticky eb-toc-not-collapsible eb-toc-initially-not-collapsed eb-toc-scrollToTop style-1 list-style-none\" data-scroll-top=\"false\" data-scroll-top-icon=\"fas fa-angle-up\" data-collapsible=\"false\" data-sticky-hide-mobile=\"false\" data-sticky=\"false\" data-scroll-target=\"scroll_to_toc\" data-copy-link=\"false\" data-editor-type=\"\" data-hide-desktop=\"false\" data-hide-tab=\"false\" data-hide-mobile=\"false\" data-itemcollapsed=\"false\" data-highlight-scroll=\"false\"><div class=\"eb-toc-header\"><h2 class=\"eb-toc-title\">Table of Contents<\/h2><\/div><div class=\"eb-toc-wrapper \" data-headers=\"[{&quot;level&quot;:2,&quot;content&quot;:&quot;Learn How to Use AI to Extract Emails from Text&quot;,&quot;text&quot;:&quot;Learn How to Use AI to Extract Emails from Text&quot;,&quot;link&quot;:&quot;learn-how-to-use-ai-to-extract-emails-from-text&quot;},{&quot;level&quot;:2,&quot;content&quot;:&quot;Extracting Emails From Text: Free Sample Tool&quot;,&quot;text&quot;:&quot;Extracting Emails From Text: Free Sample Tool&quot;,&quot;link&quot;:&quot;extracting-emails-from-text-free-sample-tool&quot;},{&quot;level&quot;:2,&quot;content&quot;:&quot;Extracting Emails From Text: Build Your AI Tool with Five&quot;,&quot;text&quot;:&quot;Extracting Emails From Text: Build Your AI Tool with Five&quot;,&quot;link&quot;:&quot;extracting-emails-from-text-build-your-ai-tool-with-five&quot;},{&quot;level&quot;:3,&quot;content&quot;:&quot;Email Extraction Use Cases: Going Beyond Emails&quot;,&quot;text&quot;:&quot;Email Extraction Use Cases: Going Beyond Emails&quot;,&quot;link&quot;:&quot;email-extraction-use-cases-going-beyond-emails&quot;},{&quot;level&quot;:2,&quot;content&quot;:&quot;Recap: Extract Emails from Text&quot;,&quot;text&quot;:&quot;Recap: Extract Emails from Text&quot;,&quot;link&quot;:&quot;recap-extract-emails-from-text&quot;},{&quot;level&quot;:3,&quot;content&quot;:&quot;Required Tools&quot;,&quot;text&quot;:&quot;Required Tools&quot;,&quot;link&quot;:&quot;required-tools&quot;},{&quot;level&quot;:3,&quot;content&quot;:&quot;Extracting Emails: Save Time and Focus on What Matters&quot;,&quot;text&quot;:&quot;Extracting Emails: Save Time and Focus on What Matters&quot;,&quot;link&quot;:&quot;extracting-emails-save-time-and-focus-on-what-matters&quot;}]\" data-visible=\"[true,true,true,true,true,true]\" data-delete-headers=\"[{&quot;label&quot;:&quot;Learn How to Use AI to Extract Emails from Text&quot;,&quot;value&quot;:&quot;learn-how-to-use-ai-to-extract-emails-from-text&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Extracting Emails From Text: Free Sample Tool&quot;,&quot;value&quot;:&quot;extracting-emails-from-text-free-sample-tool&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Extracting Emails From Text: Build Your AI Tool with Five&quot;,&quot;value&quot;:&quot;extracting-emails-from-text-build-your-ai-tool-with-five&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Email Extraction Use Cases: Going Beyond Emails&quot;,&quot;value&quot;:&quot;email-extraction-use-cases-going-beyond-emails&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Recap: Extract Emails from Text&quot;,&quot;value&quot;:&quot;recap-extract-emails-from-text&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Required Tools&quot;,&quot;value&quot;:&quot;required-tools&quot;,&quot;isDelete&quot;:false},{&quot;label&quot;:&quot;Extracting Emails: Save Time and Focus on What Matters&quot;,&quot;value&quot;:&quot;extracting-emails-save-time-and-focus-on-what-matters&quot;,&quot;isDelete&quot;:false}]\" data-smooth=\"true\" data-top-offset=\"\"><div class=\"eb-toc__list-wrap\"><ul class=\"eb-toc__list\"><li><a href=\"#learn-how-to-use-ai-to-extract-emails-from-text\">Learn How to Use AI to Extract Emails from Text<\/a><li><a href=\"#extracting-emails-from-text-free-sample-tool\">Extracting Emails From Text: Free Sample Tool<\/a><li><a href=\"#extracting-emails-from-text-build-your-ai-tool-with-five\">Extracting Emails From Text: Build Your AI Tool with Five<\/a><ul class=\"eb-toc__list\"><li><a href=\"#email-extraction-use-cases-going-beyond-emails\">Email Extraction Use Cases: Going Beyond Emails<\/a><\/li><\/ul><li><a href=\"#recap-extract-emails-from-text\">Recap: Extract Emails from Text<\/a><ul class=\"eb-toc__list\"><li><a href=\"#required-tools\">Required Tools<\/a><li><a href=\"#extracting-emails-save-time-and-focus-on-what-matters\">Extracting Emails: Save Time and Focus on What Matters<\/a><\/li><\/ul><\/ul><\/div><\/div><\/div><\/div><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Extracting Emails From Text: Free Sample Tool<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check out our free <a href=\"https:\/\/default-aiemailextractor-tryfive.5au.dev\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">sample application<\/a> for extracting emails from text. The application accepts a text input and returns a structured list of all email addresses.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/default-aiemailextractor-tryfive.5au.dev\/\" rel=\"nofollow noopener\" target=\"_blank\"><img width=\"1024\" height=\"644\" src=\"https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2-1024x644.png\" alt=\"\" class=\"wp-image-4475\" srcset=\"https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2-1024x644.png 1024w, https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2-300x189.png 300w, https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2-768x483.png 768w, https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2-1536x966.png 1536w, https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/image-2.png 1902w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s how the application works:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. First, <a href=\"https:\/\/default-aiemailextractor-tryfive.5au.co\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">open the application<\/a>, and click <strong>AI Extractor<\/strong> in the left-hand menu. <br>2. Paste the text containing email addresses into the <strong>Input <\/strong>box. <br><em>Note: <\/em>this is a publicly accessible template application. We do not recommend pasting real email addresses. Here&#8217;s a sample text to try the email extractor.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#abb2bf;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282c34\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\" \/* hello@world.xyz, Jane Doe. homer@thesimpsons.com, Homer (male). bart@thesimpsons.com, Bart (son of Homer Simpson). Maggie Simpsons' email is maggie@thesimpsons.com.n*\/ \" style=\"color:#abb2bf;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki one-dark-pro\" style=\"background-color: #282c34\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #7F848E; font-style: italic\">\/* hello@world.xyz, Jane Doe. homer@thesimpsons.com, Homer (male). bart@thesimpsons.com, Bart (son of Homer Simpson). Maggie Simpsons&#39; email is maggie@thesimpsons.com.n*\/<\/span><span style=\"color: #ABB2BF\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">3. Click <strong>Extract.<\/strong> Once the extraction is completed, a success message appears: <b>AI Extraction <\/b><strong><b>Co<\/b>mplete<\/strong>. Click <strong>OK <\/strong>to confirm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Go to <strong>Emails <\/strong>in the menu on the left side of the application. This is a list of all the emails extracted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. To filter through the emails, go to <strong>Email Filter <\/strong>on the left-hand side. Select today&#8217;s <strong>Date<\/strong> to narrow down your selection of email addresses. You can further filter for specific emails by hovering over the header columns of the table at the bottom. Each column is fully filterable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From here, you can also export your list of email addresses as a CSV file. To do so, click the <strong>Export to CSV <\/strong>button near the top right corner.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you have a list of the email addresses that were contained in your text, you can go ahead and import the addresses into your CRM or marketing automation system. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For permanent access to a login-protected email extractor, <a href=\"https:\/\/preview-php85.dzine.org\/five\/pricing\">sign up for one of our subscription plans<\/a>. Add additional features, such as sending out emails, passing on emails to your CRM, or enriching emails with additional information.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Extracting Emails From Text: Build Your AI Tool with Five<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8220;Extract Email&#8221; is a free sample application developed in Five, a rapid application development environment. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Five provides us with everything we need to develop this application:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A customizable SQL database for storing our data;<\/li>\n\n\n\n<li>An auto-generated web UI for working with our data; and<\/li>\n\n\n\n<li>The ability to make API calls to your LLM for analyzing our data.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Beyond that, Five also lets us <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add<strong> logins, authentication, and authorization<\/strong> to the application. This is great if you&#8217;d like your data to be password-protected.<\/li>\n\n\n\n<li>Send an <strong>email <\/strong>to every email found in the text, so that you don&#8217;t need to import it into your CRM system, or<\/li>\n\n\n\n<li>Expand the <strong>number of fields<\/strong> that we get from AI for storing in the database.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the steps below to build your own AI-powered email extraction tool. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Email Extraction Use Cases: Going Beyond Emails<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s say you&#8217;re not just looking for emails but also for contact details, such as first name, last name, organization, and email. You have been given an event participant list and your job is to extract these four pieces of information from it. Unfortunately, the list is messy and unstructured. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s how to tackle this challenge:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Sign up for a <a href=\"https:\/\/preview-php85.dzine.org\/five\/get-started\">free trial of Five&#8217;s development environment.<\/a><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Model your database. <\/strong><br>If you&#8217;re not sure how to model a database in Five, follow <a href=\"https:\/\/preview-php85.dzine.org\/five\/blog\/creating-tables\/\" target=\"_blank\" rel=\"noreferrer noopener\">our series of blog posts on database modeling<\/a>. Remember, the database is what structures your data. So if you plan to extract three, five, or seven pieces of information from an unstructured input, you should have three, five, or seven database fields. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Create your user interface.<\/strong><br>All we need are a few forms. Use <a href=\"https:\/\/preview-php85.dzine.org\/five\/blog\/form-designer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Five&#8217;s Form Wizard<\/a> to add them to your user interface. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Add the JavaScript functions to prompt your LLM. <\/strong><br>We need two functions: one that runs on the client and one that runs on the server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The client-side function holds the fields sent to AI as variables. Here&#8217;s what our client-side function for the sample app above looks like:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#abb2bf;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282c34\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"function OpenAIClient(five, context, result)  {\n    const input = five.field.Input;\n\n    const variables = {};\n    variables[&quot;Input&quot;] = input;\n\n    five.executeFunction(&quot;OpenAIServer&quot;, variables, null, null, null, function (result) {\n        five.showMessage(&quot;Extraction Complete&quot;);\n    })\n\n\n    return five.success(result);\n}\" style=\"color:#abb2bf;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki one-dark-pro\" style=\"background-color: #282c34\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C678DD\">function<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF\">OpenAIClient<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75; font-style: italic\">five<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75; font-style: italic\">context<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75; font-style: italic\">result<\/span><span style=\"color: #ABB2BF\">)  {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">input<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E5C07B\">field<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Input<\/span><span style=\"color: #ABB2BF\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">variables<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> {};<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E06C75\">variables<\/span><span style=\"color: #ABB2BF\">[<\/span><span style=\"color: #98C379\">&quot;Input&quot;<\/span><span style=\"color: #ABB2BF\">] <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">input<\/span><span style=\"color: #ABB2BF\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">executeFunction<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;OpenAIServer&quot;<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">variables<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #D19A66\">null<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #D19A66\">null<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #D19A66\">null<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #C678DD\">function<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75; font-style: italic\">result<\/span><span style=\"color: #ABB2BF\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">showMessage<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;Extraction Complete&quot;<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    })<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">return<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">success<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">result<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Our server-side function does the heavy lifting and contains our AI prompt. Don&#8217;t forget to insert your own API code in line 2. <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#abb2bf;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282c34\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"function OpenAIServer(five, context, result)  {\n    const apiKey = 'API Key'\n    const client = five.httpClient();\n    client.addHeader(&quot;Authorization&quot;, `Bearer ${apiKey}`);\n    client.addHeader('Content-Type', 'application\/json');\n    client.setContentType(&quot;application\/json&quot;);\n\n    const messages = [\n        {\n            role: &quot;developer&quot;,\n            content: `You are a text scraper. Give me a JSON response which contains an array called Email containing each of the emails within the input.`,\n        },\n        {\n            role: &quot;user&quot;,\n            content: `${context.Input}`,\n        },\n    ];\n\n    const parseData = {\n        model: &quot;gpt-4o&quot;,\n        messages: messages\n    }\n\n    client.setContent(JSON.stringify(parseData));\n\n    let results = client.post(&quot;https:\/\/api.openai.com\/v1\/chat\/completions&quot;)\n    const content = results.response.choices[0].message.content;\n    const jsonString = content.replace(\/```json\\n|\\n```\/g, '');\n    const parsedResponse = JSON.parse(jsonString);\n\n    const { Email } = parsedResponse\n    const emails = Email.toString().split(&quot;,&quot;);\n    const sql = &quot;INSERT INTO Email (EmailKey, Email, DateOfExtraction) VALUES (?,?,?)&quot;;\n    for (let i = 0; i &lt; emails.length; i++) {\n        five.executeQuery(sql, 0, five.uuid(), emails[i], five.now());\n    }\n\n\n    return five.success(result);\n}\" style=\"color:#abb2bf;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki one-dark-pro\" style=\"background-color: #282c34\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C678DD\">function<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF\">OpenAIServer<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75; font-style: italic\">five<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75; font-style: italic\">context<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75; font-style: italic\">result<\/span><span style=\"color: #ABB2BF\">)  {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">apiKey<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">&#39;API Key&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">httpClient<\/span><span style=\"color: #ABB2BF\">();<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">addHeader<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;Authorization&quot;<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #98C379\">`Bearer <\/span><span style=\"color: #C678DD\">${<\/span><span style=\"color: #E06C75\">apiKey<\/span><span style=\"color: #C678DD\">}<\/span><span style=\"color: #98C379\">`<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">addHeader<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&#39;Content-Type&#39;<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #98C379\">&#39;application\/json&#39;<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">setContentType<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;application\/json&quot;<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">messages<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> [<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #E06C75\">role<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #98C379\">&quot;developer&quot;<\/span><span style=\"color: #ABB2BF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #E06C75\">content<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #98C379\">`You are a text scraper. Give me a JSON response which contains an array called Email containing each of the emails within the input.`<\/span><span style=\"color: #ABB2BF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #E06C75\">role<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #98C379\">&quot;user&quot;<\/span><span style=\"color: #ABB2BF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #E06C75\">content<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #98C379\">`<\/span><span style=\"color: #C678DD\">${<\/span><span style=\"color: #E5C07B\">context<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Input<\/span><span style=\"color: #C678DD\">}<\/span><span style=\"color: #98C379\">`<\/span><span style=\"color: #ABB2BF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        },<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    ];<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">parseData<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">model<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #98C379\">&quot;gpt-4o&quot;<\/span><span style=\"color: #ABB2BF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">messages<\/span><span style=\"color: #ABB2BF\">: <\/span><span style=\"color: #E06C75\">messages<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">setContent<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">JSON<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">stringify<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">parseData<\/span><span style=\"color: #ABB2BF\">));<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">let<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">results<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">client<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">post<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;https:\/\/api.openai.com\/v1\/chat\/completions&quot;<\/span><span style=\"color: #ABB2BF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">content<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">results<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E5C07B\">response<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">choices<\/span><span style=\"color: #ABB2BF\">[<\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">].<\/span><span style=\"color: #E5C07B\">message<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">content<\/span><span style=\"color: #ABB2BF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">jsonString<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">content<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">replace<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">\/```json\\n<\/span><span style=\"color: #ABB2BF\">|<\/span><span style=\"color: #E06C75\">\\n```\/<\/span><span style=\"color: #C678DD\">g<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #98C379\">&#39;&#39;<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">parsedResponse<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">JSON<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">parse<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">jsonString<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #E5C07B\">Email<\/span><span style=\"color: #ABB2BF\"> } <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">parsedResponse<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">emails<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">Email<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">toString<\/span><span style=\"color: #ABB2BF\">().<\/span><span style=\"color: #61AFEF\">split<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">&quot;,&quot;<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">sql<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">&quot;INSERT INTO Email (EmailKey, Email, DateOfExtraction) VALUES (?,?,?)&quot;<\/span><span style=\"color: #ABB2BF\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">for<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #C678DD\">let<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">&lt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">emails<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">length<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">executeQuery<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">sql<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">uuid<\/span><span style=\"color: #ABB2BF\">(), <\/span><span style=\"color: #E06C75\">emails<\/span><span style=\"color: #ABB2BF\">[<\/span><span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\">], <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">now<\/span><span style=\"color: #ABB2BF\">());<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    }<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">return<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">five<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #61AFEF\">success<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">result<\/span><span style=\"color: #ABB2BF\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ABB2BF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Last, hit <strong>Extract<\/strong> and let AI populate your database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note: <\/em>as with any AI tool be aware of hallucination and make sure the extracted emails are valid before running an email campaign.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"background-color: #001524;\"><hr style=\"height: 5px;\" \/>\n<pre style=\"text-align: center; overflow: hidden; white-space: pre-line;\"><span style=\"color: #f1ebda; background-color: #4588d8; font-size: calc(18px + 0.390625vw);\"><strong>Extract Emails From Text<\/strong><br \/><span style=\"font-size: 14pt;\">Rapidly build and deploy AI tools today<\/span><\/span><\/pre>\n<p style=\"text-align: center;\"><a href=\"https:\/\/preview-php85.dzine.org\/five\/get-started\" target=\"_blank\" rel=\"noopener\"><button style=\"background-color: #f8b92b; border: none; color: black; padding: 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 18px; cursor: pointer; margin: 4px 2px; border-radius: 5px;\"><strong>Get Instant Access<\/strong><\/button><br \/><\/a><\/p>\n<hr style=\"height: 5px;\" \/><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Test the application. <\/strong><br>Once you&#8217;re done developing, remember to test the application so that it works as intended.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong>Accelerate Your Development<\/strong>: <strong>If you get stuck at any of these steps, post on our user community to <a href=\"https:\/\/five.org\" rel=\"nofollow noopener\" target=\"_blank\">contact our team of developers.<\/a><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Recap: Extract Emails from Text<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Required Tools<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To extract emails from a text, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Data Ingestion<\/strong>: Import the text containing email addresses into your application developed in Five.<\/li>\n\n\n\n<li><strong>Text Parsing and Analysis<\/strong>: Use AI or natural language processing (NLP) to extract key fields such as email addresses.<\/li>\n\n\n\n<li><strong>Data Mapping<\/strong>: Match parsed data to predefined database columns.<\/li>\n\n\n\n<li><strong>Data Storage<\/strong>: Insert structured data into your Five-developed relational database for querying and analysis.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Tools like Five simplify this process for rapid application development. With Five, you can build a simple AI-driven application that extracts emails from text in minutes. Just follow the steps above.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Extracting Emails: Save Time and Focus on What Matters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Extracting email addresses from unstructured text is essential for managing contact lists efficiently. With the right tools, you can transform disorganized text into structured, actionable data. Automating the extraction process ensures accuracy and saves time, whether emails are hidden in web pages, documents, or raw text files. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Extracting and organizing emails is a critical step for effective communication and data-driven decision-making in any industry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn How to Use AI to Extract Emails from Text Extracting email addresses from text is a common yet tedious task for developers, marketers, and data analysts. However, new tools, such as rapid application development environments and AI give us everything we need to fully automate this task. Whether emails are hidden in website code, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4476,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_eb_attr":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[21],"tags":[],"class_list":["post-4474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT.jpg",1280,720,false],"thumbnail":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT-150x150.jpg",150,150,true],"medium":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT-300x169.jpg",300,169,true],"medium_large":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT-768x432.jpg",768,432,true],"large":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT.jpg",1280,720,false],"2048x2048":["https:\/\/preview-php85.dzine.org\/five\/wp-content\/uploads\/2025\/01\/Five.Co-HOW-TO-EXTRACT-EMAILS-FROM-TEXT.jpg",1280,720,false]},"uagb_author_info":{"display_name":"Dominik Keller","author_link":"https:\/\/preview-php85.dzine.org\/five\/author\/f1v5_ed3_my\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn How to Use AI to Extract Emails from Text Extracting email addresses from text is a common yet tedious task for developers, marketers, and data analysts. However, new tools, such as rapid application development environments and AI give us everything we need to fully automate this task. Whether emails are hidden in website code,&hellip;","_links":{"self":[{"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/posts\/4474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/comments?post=4474"}],"version-history":[{"count":0,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/posts\/4474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/media\/4476"}],"wp:attachment":[{"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/media?parent=4474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/categories?post=4474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/preview-php85.dzine.org\/five\/wp-json\/wp\/v2\/tags?post=4474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}