Hello Support Team,
I need assistance with automating the processing of my incoming emails to create leads in Odoo CRM. I’ve been trying to get this to work for the past two days without success.
The text of my emails looks like this:
[https://example.com/wp-content/uploads/2024/01/logo-mail3.png] BOOKING DETAILS
Booking REF ID #: 217Date: 2024-07-05
Time: -
Member Name: -
PROVIDER DETAILS
Provider Name: Dr. med. Hans Somer [https://example/doctor/dr-med-hansommerfeld/]Provider Email:
Phone:CUSTOMER DETAILS
Customer Name: Schmitt MustermannCustomer Email: abcd@yahoo.de
Phone: 06925424524
WhatsApp: 01765162214
Address: Espenstr. 28
Zip code: 692521
City: Frankfurt am Main
State: Hessen
Postal Code:
Country: Germany
Services:
Service NameDateStart TimeEnd TimeFull DayStatusMember NameCoupon > CodeDiscountDiagnosis of Bladder cancer-0001-11-30–noIncomplete -NANAService Location: Frankfurt am Main
Description:
PAYMENT DETAILS
Pay Via: FreeAmount: €2890.00
Admin Fee: €0.00
SERVICE DETAILS
DISEASE(S) SYMPTOMS TO BE TREATED
—WHAT DO YOU EXPECT FROM THE SELECTED SERVICE? E.G. SPECIFIC > TREATMENT DESIRE (E.G. SURGERY, RADIOTHERAPY, DIAGNOSTICS)
—WHICH DIAGNOSTIC TESTS WERE PERFORMED DURING THE LAST 3-6 MONTHS?
IMAGING TECHNIQUES
—HISTOLOGY
—WHICH TREATMENTS HAVE BEEN PERFORMED FOR THE DISEASE(S)/SYMPTOM(S) MENTIONED ABOVE?
—Kind of TreatmentDescription
(Operation, medication, irradiated body part, etc.)Date performed
(MM/DD/YYYY)Operation / Intervention
(e.g. heart catheter)------Drug Therapy
(e.g. Chemotherapy other medication)------Irradiation
please add previous radiation treatment protocols------Other------DO(ES) YOU/THE > PATIENT HAVE ANY OPEN WOUNDS AT PRESENT?*
NoPLEASE INDICATE YOUR/THE PATIENT’S PRESENT MOBILITY STATUS?*
not limited
I want to extract the following information from the text content:
- Customer Name: Schmitt Mustermann
- Customer Email: abcd@yahoo.de
- Phone: 06925424524
- WhatsApp: 01765162214
- Address: Espenstr. 28
- Zip code: 692521
- City: Frankfurt am Main
- State: Hessen
- Country: Germany
So far, I have followed these steps:
- Receive emails.
- Parse information using the following patterns:
Customer Name: ([a-zA-Z ]+) Customer Email: (\S+@\S+\.\S+) Phone: (\d+) WhatsApp: (\d+) Address: ([a-zA-Z0-9\.\s]+) Zip code: (\d+) City: ([a-zA-Z ]+) State: ([a-zA-Z]+) Country: ([a-zA-Z ]+)
However, I am not getting any output from the text parser. I checked the history and found no results.
Could someone please help me resolve this issue?
Thank you in advance!
Blueprint:
blueprint.json (21.3 KB)