We have some keywords defined in ABC entity. If email subject contains those keywords then it will create case based on ABC entity key. In the ABC entity also have optionset which contains critical,internal and external
Requirement.
If subject contains "critical" then select the ABC entity keywords that matches to the "critical" and set optionset value to critical otherwise internal or external.
How to do this with custom workflow