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 / About the Edit Functio...
Copilot Studio
Answered

About the Edit Function of Custom Prompt in AI Builder Action

(0) ShareShare
ReportReport
Posted on by 8
I hope this message finds you well.

I would like to ask a question regarding the subject mentioned.

I want to use [Run a prompt] action in AI Builder.
When I edit cutom prompt, can I use variables as arguments defined in a Power Automation flow.

I couldn't find out how to use variables in editting in custom prompt.
Or are there any function to realize it?

Please see attachment file (error message displayed).
I couldn't under stand the meaning of error messages.
Please explain abount error messages.


I also used [AdditionalContext] parametes,
I could pass as a parameter of request(item/requestv2/additionalContext),
but i couldn't pass as custom prompt's arguments.


It seems that the contents of additionalContext are not being reflected in the prompt.

Best regards.
additional_context_1.png
additional_context_2.png
error.png
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi @TT-29010303-0

    The way you used the variable in the first screenshot unfortunately will not work.

    Please go to your custom prompt and add placeholders for the text or images you need. You don’t need to use PowerFx for this, just add normal fields using Add content button.

    See my example below.

    After you do this and saved it and closed it, the Run a prompt action in Power Automate will show these fields, and you can populate them with your variables (dynamic content). Don’t use AdditionalContext for this, keep it empty.

    Hope it helps and let me know if it worked!

     
     
  • Suggested answer
    TT-29010303-0 Profile Picture
    8 on at
    I understand that I had misunderstood how to use it.
    Thank you for your response.

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard