Create pending users for workers who are on the verge of being onboarded by entering their emails and the date.
When creating the “Create Pending Worker” action for your bot you will need the following entities and variables:
Birth date entity; you can turn it on in the list of standard entities in the Manage datasets section of the CMS);
Name variable; you will be able to create this variable directly in the flow (see description later in the article);
Email entity (you can turn it on in the list of standard entities in the Manage datasets section of the CMS).
After having enabled these, you will go to the flow builder where you will create a new flow. Inside the latter create an entity component for the birth date entity and email entity you previously turned on: choose the entity name (e.g. @std-date), give it a personalised name, prompt text and fallback message.
Regarding the name entity, you will need to create a text component and e.g. write “Enter your name”. Then create an action selecting “Save last user input” and giving it a variable name (e.g. “CreatePendingWorkerName”).
Finally, create an additional action, select Oracle HCM and then “Create Pending Worker”. Now select your preferred integration channel and select the entities you have created in advance.
Go to the Datasets, add a new intent along with 6-10 variations and connect it to the flow containing the action you have just created.
Before closing up, add a last action to Reset entities values so that later the user will be redirected to the new entities.
Finally you can save your work and check it on the preview. If you are pleased with how it is looking you can push it live.