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 / How to use the default...
Copilot Studio
Suggested Answer

How to use the default CSAT in a topic triggered by inactivity?

(1) ShareShare
ReportReport
Posted on by 4
I want to place the default CSAT from the End of Conversation topic into my custom inactivity topic because few users say godbay to the chatbot.
What I did in my implementation attempt was copy the part of the YAML that refers to the CSAT and place it within the inactivity topic. What I don't understand is why it works within the End of Conversation thread but not within my custom thread is the conversationOutcome: ResolvedConfirmed snippet. I thought that was the key point here.
 
I used it twice because my idea is for an adaptive card to appear after the CSAT, and I thought using conversationOutcome: ResolvedConfirmed could also help here so that it doesn't capture the button click as an activity.
 
kind: AdaptiveDialog
beginDialog:
  kind: OnInactivity
  id: main
  durationInSeconds: 3
  actions:
    - kind: ConditionGroup
      id: conditionGroup_BgsGnk
      conditions:
        - id: conditionItem_UlsYSi
          condition: =System.Activity.Channel = ChannelId.MsTeams
          actions:
            - kind: CSATQuestion
              id: csat_2
              conversationOutcome: ResolvedConfirmed

            - kind: SendActivity
              id: sendActivity_jlhIm5
              conversationOutcome: ResolvedConfirmed
              activity:
                attachments:
                  - kind: AdaptiveCardTemplate
                    cardContent: |-
                      {
                        "type": "AdaptiveCard",
                        "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
                        "version": "1.5",
                        "body": [
                          {
                            "type": "ColumnSet",
                            "columns": [
                              {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                  {
                                    "type": "TextBlock",
                                    "wrap": true,
                                    "horizontalAlignment": "Center",
                                    "text": "Gostaria de compartilhar um feedback mais detalhado para contribuir com meu desenvolvimento?"
                                  }
                                ]
                              },
                              {
                                "type": "Column",
                                "width": "130px",
                                "items": [
                                  {
                                    "type": "ActionSet",
                                    "actions": [
                                      {
                                        "type": "Action.OpenUrl",
                                        "title": "Clique Aqui",
                                        "iconUrl": "icon:CursorClick",
                                        "style": "positive",
                                        "url": "https://forms.office.com/"
                                      }
                                    ],
                                    "horizontalAlignment": "Center"
                                  }
                                ],
                                "verticalContentAlignment": "Center"
                              }
                            ]
                          }
                        ]
                      }

            - kind: ClearAllVariables
              id: 8qIFaT

            - kind: CancelAllDialogs
              id: 882hEs

            - kind: EndConversation
              id: SWYxbA

inputType: {}
outputType: {}
I tested it in Teams and it didn't work. After voting on the CSAT, the same bubble reappears (from the CSAT) because the bot is triggering inactivity thread post vote. The same thing happens after voting and clicking the adaptive card button. 
 
Can someone help me?
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    You could try this, it worked for me:
     
    kind: AdaptiveDialog
    beginDialog:
      kind: OnInactivity
      id: main
      durationInSeconds: 3
      actions:
        - kind: ConditionGroup
          id: guardCheck
          conditions:
            - id: alreadyClosed
              condition: =Global.IsConversationClosed = true
              actions:
                - kind: EndDialog
                  id: exitEarly
     
        - kind: ConditionGroup
          id: channelCheck
          conditions:
            - id: teamsOnly
              condition: =System.Activity.Channel = ChannelId.MsTeams
              actions:
                - kind: CSATQuestion
                  id: csat_1
                  conversationOutcome: ResolvedConfirmed
     
                - kind: SendActivity
                  id: feedbackCard
                  conversationOutcome: ResolvedConfirmed
                  activity:
                    attachments:
                      - kind: AdaptiveCardTemplate
                        cardContent: |-
                          {
                            "type": "AdaptiveCard",
                            "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
                            "version": "1.5",
                            "body": [
                              {
                                "type": "ColumnSet",
                                "columns": [
                                  {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                      {
                                        "type": "TextBlock",
                                        "wrap": true,
                                        "horizontalAlignment": "Center",
                                        "text": "Gostaria de compartilhar um feedback mais detalhado para contribuir com meu desenvolvimento?"
                                      }
                                    ]
                                  },
                                  {
                                    "type": "Column",
                                    "width": "130px",
                                    "items": [
                                      {
                                        "type": "ActionSet",
                                        "actions": [
                                          {
                                            "type": "Action.OpenUrl",
                                            "title": "Clique Aqui",
                                            "iconUrl": "icon:CursorClick",
                                            "style": "positive",
                                            "url": "https://forms.office.com/"
                                          }
                                        ],
                                        "horizontalAlignment": "Center"
                                      }
                                    ],
                                    "verticalContentAlignment": "Center"
                                  }
                                ]
                              }
                            ]
                          }
     
                - kind: SetVariable
                  id: setGuard
                  variable: Global.IsConversationClosed
                  value: =true
     
                - kind: CancelAllDialogs
                  id: cancelAll
     
                - kind: EndConversation
                  id: endConv
     
    inputType: {}
    outputType: {}
     
    Let me know if it worked!
     
     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
sannavajjala87 Profile Picture

sannavajjala87 160 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 145

#3
Haque Profile Picture

Haque 121

Last 30 days Overall leaderboard