microsoft / microsoft/CopilotStudioSamples

Crash while using Auto Detect Language for Generative Responses

Open
#378 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
797
Forks
491
PR merge metrics
No merged PRs in 30d

Description

What sample tool are you using?
Auto Detect Language for Generative Responses

Describe the bug
I switch language during the chat. The Detect Language topic is executed. The User.Language is set to the chosen language.
In my flow I show a Formula card (Adaptive Card). After clicking on a button in the Adaptive Card I get the following error:
Error Message: The parameter with name 'Message' is required to call the prompt but its value is blank. Error Code: AIModelActionBadRequest Conversation Id: ed6f5716-3fe4-4fdd-976b-13747707d346 Time (UTC): 2025-09-04T06:40:00.160Z

This crash occur even if I don't switch language.
If I disable Detect Language topic the issue is gone.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Auto Detect Language for Generative Responses sample flow, including the Detect Language topic, User.Language change, Formula card, and Adaptive Card button. Compare the flow with Detect Language disabled and inspect the prompt input at the point of failure. Done means clicking the Adaptive Card button no longer produces the blank Message AIModelActionBadRequest error.

Written by the indexing model from the issue text.

Assessment

Domain
ai
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.