Hallo
I need to extract data from mails.
The Emails can have between 1-4 persons, and a person can have 1 or 2 phone numbers. If a person have 2 phone numbers, the person needs 2 lines in the json output.
I will give 2 examples of how it could look like.
Example 1:
"Adress: hej123
Information: hallo how are you…person 1: Alex Doe, phone1: 1231453, day_night
person 2: Bob Doe, phone1: 1231515123, phone2: 333305483, day_night
person 3: Carol Doe, phone1: 33333333, day
person 4: Dave Doe, phone1: 1234, night
Have a good day
Kind regards ------
Adresss
City
PhonenumberYou cant respond on this E-mail."
Output for example 1 should be:
[{“FullName”:“Alex Doe”,“PhoneNumber”:“1231453”,“Day”:true,“Night”:true},
{“FullName”:“Bob Doe”,“PhoneNumber”:“1231515123”,“Day”:true,“Night”:true},
{“FullName”:“Bob Doe”,“PhoneNumber”:“333305483”,“Day”:true,“Night”:true},{“FullName”:“Carol Doe”,“PhoneNumber”:“33333333”,“Day”:true,“Night”:false},{“FullName”:“Dave Doe”,“PhoneNumber”:“1234”,“Day”:false,“Night”:true}]
Example 2
"Adress: hej123
Information: hallo how are you…person 1: Alex Doe, phone1: 1231453, day_night
person 2: Carol Doe, phone1: 33333333, day
person 3: Dave Doe, phone1: 1234, night
Have a good day
Kind regards ------
Adresss
City
PhonenumberYou cant respond on this E-mail."
Output should be:
[{“FullName”:“Alex Doe”,“PhoneNumber”:“1231453”,“Day”:true,“Night”:true},
{“FullName”:“Carol Doe”,“PhoneNumber”:“33333333”,“Day”:true,“Night”:false},{“FullName”:“Dave Doe”,“PhoneNumber”:“1234”,“Day”:false,“Night”:true}]
Lets me know if you need more information, thanks a lot!