Need help with UiPath robot to process emails with attachments

Yes trigger email activity should be in start of the process why you are using state machine?