@Joji please try to use the sample flow below:
It uses both FlexiCapture (with one document definition) as well as the beta Machine Learning Extractor for extracting information from invoices and receipts. It should give you a good start on your journey.