Generate Mail with name parsing
Recipe Tools
What it does
When someone calls the Generate Email function, this automation parses a full name into first and last name components. It processes each part and returns the structured data so the caller receives formatted name fields.
Who it's for
Engineering teams who need to parse full names into components for email generation or data enrichment.
Apps used
How teams use this
Parse names for email generation
Extract first and last names from a full name string so emails are addressed with the correct recipient name. The parsing happens automatically each time the function is called.
Enrich contact records with name parts
Use the parsed first and last names to populate separate fields in a contact database. This setup only changes where the parsed data is sent after the function returns.
Add middle name detection
Extend the parsing logic to identify and extract a middle name when present. This requires adding a condition to check for three or more name parts and a variable to store the middle name.
How it works
- Receive a call for Generate Email. Someone calls the Generate Email function in real time with a full name to parse.
- Strip and split the name. Workato Service creates variables to remove extra spaces and separate the full name into individual components for processing.
- Loop through name parts. Workato Service repeats through each part of the name to identify and assign first name and last name based on position.
- Return parsed names. Workato Service sends back the structured first name and last name fields so the caller gets clean, separated name data.