web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Is there workaround fo...
Copilot Studio
Suggested Answer

Is there workaround for the character limitation when I call Copilot agent with Power Automate

(0) ShareShare
ReportReport
Posted on by 52
Hi Community
 
I have a Power Apps which need to trigger Power Automate which in turns call Copilot Agent for some AI functionality,
I need to pass some text from my Power App (which is stored in Dataverse) to Copilot Agent for processing (which is usually more than 2000 characters), 
may I know if there's any workarounds to pass more words into the Agent?
 
 
Workaround i could think of is
  • instruct the agent to query dataverse and store the text (multi-text variable in dataverse) into a variable for the agent to process
  • upload file that include all the input i want to pass to the agent
May I know if the above is feasible?
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Elliot Margot Profile Picture
    16 on at

    Both options you proposed will work — and you've actually identified the two best approaches. Let me walk through each.

     

     
     

     

    Option 1 (Recommended): Pass the record ID — let the agent pull the text itself

    This is the cleanest architecture and the one I'd use in production. The 2000-character constraint is on the input message field of the Power Automate connector, not on what the agent can process internally. So the trick is to never push the large text through the connector at all.

    Here's the pattern:

    1. In Power Automate, pass only the Dataverse record ID (a 36-character GUID) to the agent — well within any limit.
    2. In Copilot Studio, create an Action that retrieves the full record:
      • Go to Actions > Add an action > New Power Automate flow
      • Flow input: Record ID (Text)
      • Flow action: Dataverse "Get a row by ID" on your table, using the record ID input
      • Flow output: return the multi-line text column value
      • Back in your CS topic: call this action, store the output in a topic variable
    3. Use the variable in your processing prompt or pass it to a generative AI node.

    The agent fetches the latest version of the record at query time, there is no payload size concern, and you keep full control over which columns you expose. This scales to any text length.

    If you want to avoid a separate cloud flow, the Copilot Studio Dataverse connector (under Actions > Add a connector) can also query rows directly without needing to build a flow — worth checking if your table is straightforward.

     


     

    Option 2: Upload a file and pass the URL or filename

    Also feasible, and better suited to scenarios where the content is more static (documents, templates, reference material) rather than a frequently-changing Dataverse record.

    Pattern:

    1. In Power Automate, write the text content to a SharePoint file (.txt works fine) using "Create file" or "Update file."
    2. Pass the file URL or a short identifier to the agent via the connector.
    3. In the agent, retrieve the content via an HTTP request action or a SharePoint "Get file content" action.

    For dynamic Dataverse records that change per-run, Option 1 is significantly less overhead — no file management, no cleanup, no stale content risk.

     


     

    Why the limit exists

    The ~2000-character constraint is a channel-level input limit on the message payload in the Power Automate connector, not an AI model limit. Copilot Studio's language model can handle much longer context — you just can't push large text through the conversation trigger field in one shot. Passing structured identifiers (record IDs, URLs) instead of raw text is the standard workaround across all channel types.

     


     

    References

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 310

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 225 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 223

Last 30 days Overall leaderboard