Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Unanswered

How to send Var like Activity.Text in JSON content along with my prompt

(0) ShareShare
ReportReport
Posted on by 18

I need use My own LLM to answer user's question. And I don't like get response via Power automate HTTP Action, cause 2min timeout limit.

So I plan to use HTTP POST in topic to get my own LLM(fine-tuned) response and answer user's question.
My question is How to send Var like Activity.Text in JSON content along with my prompt

 

{
"messages": [
{
"role": "system",
"content": "My sys prompt." #my sys prompt string
},
{
"role": "user",
"content": "Var in Copilot studio" # here, I need Var like Activity.Text. how to do that?
},
{
"role": "assistant",
"content": ""
}
],
"max_tokens": 1500,
"temperature": 0.2,
"frequency_penalty": 0,
"presence_penalty": 0,
"top_p": 0.95,
"stop": null
}

 

 

 

and I try to use the following FX 

 

{
messages: [
{
role: "system",
content: "prompt string."
},
{
role: "user",
content: "Topic.UserPrompt"
},
{
role: "assistant",
content: Topic.UserPrompt
}
],
max_tokens: 1500,
temperature: 0.2,
frequency_penalty: 0,
presence_penalty: 0,
top_p: 0.95,
stop:
}

 

and got:
Unexpected characters. Characters are used in the formula in an unexpected way.
Unexpected characters. The formula contains 'Eof' where 'CurlyClose' is expected.

 

  • adilei Profile Picture
    adilei on at
    Re: How to send Var like Activity.Text in JSON content along with my prompt

    The "stop" key is missing a value. You can even use an empty value, just assign something.

     

    adilei_0-1711011576248.png

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics