AI document processing for automated workflows