I did a Copilot Studio agent that works for manual email triage but cannot retrieve historical emails from Outlook. How can I query existing emails? And also the agent can automatically triage a new email.

I did a Copilot Studio agent that works for manual email triage but cannot retrieve historical emails from Outlook. How can I query existing emails? And also the agent can automatically triage a new email.