Exhibit 23.1
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the incorporation by reference in this Registration Statement on Form S-8 of our reports dated June 23, 2025, relating to the financial statements of C3.ai, Inc. and subsidiaries (the “Company”) and the effectiveness of the Company's internal control over financial reporting, appearing in the Annual Report on Form 10-K of the Company for the year ended April 30, 2025.

/s/ DELOITTE & TOUCHE LLP
San Jose, California
September 15, 2025