I get adaptive card feedback machanism only when asking second time

Akhil Sajeevan 35 Reputation points
2025-01-15T12:15:20.0266667+00:00

I have an issue with adaptive card feed back mechanism.
When i add adaptive card for feed back mechanism, If i ask first the response from share point from generative answers from conversational boosting from share point data it only shows first without feedback mechanism.
If I again ask then only it shows the adaptive card with feedback mechanism with response from share point included in it.
Why?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,176 questions
Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
559 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jonathan Harrison 170 Reputation points
    2025-01-15T14:17:21.4333333+00:00

    It sounds like you're experiencing an issue where the adaptive card for feedback isn't appearing on the first query but only on subsequent queries. This could be due to a few reasons:

    Initialization Delay: The adaptive card might not be initialized or loaded properly on the first query. This could be due to a delay in the system recognizing the need to display the feedback mechanism.

    Caching Issue: The system might be caching the initial response without the feedback mechanism. When you ask again, it refreshes and includes the adaptive card.

    Conditional Logic: There might be a condition in your code that only triggers the feedback mechanism on subsequent queries. Check if there's any logic that differentiates the first query from the following ones.

    SharePoint Integration: The integration with SharePoint might be causing a delay or an issue in fetching the data and displaying the adaptive card simultaneously.

    To troubleshoot this, you can:

    • Check the Initialization: Ensure that the adaptive card is being initialized correctly on the first query.
    • Review the Code: Look for any conditional logic that might be affecting the display of the adaptive card.
    • Test with Different Scenarios: Try different scenarios to see if the issue persists and identify any patterns.
    • Debug Logs: Use debug logs to trace the flow and identify where the process might be breaking down.It sounds like you're experiencing an issue where the adaptive card for feedback isn't appearing on the first query but only on subsequent queries. This could be due to a few reasons:
      1. Initialization Delay: The adaptive card might not be initialized or loaded properly on the first query. This could be due to a delay in the system recognizing the need to display the feedback mechanism.
      2. Caching Issue: The system might be caching the initial response without the feedback mechanism. When you ask again, it refreshes and includes the adaptive card.
      3. Conditional Logic: There might be a condition in your code that only triggers the feedback mechanism on subsequent queries. Check if there's any logic that differentiates the first query from the following ones.
      4. SharePoint Integration: The integration with SharePoint might be causing a delay or an issue in fetching the data and displaying the adaptive card simultaneously.

    To address the issue with the adaptive card feedback mechanism, you could review the following areas in your code:

    Initialization Code: Check how and when the adaptive card is being initialized. Ensure that it's set up to display on the first query.

    Conditional Logic: Look for any conditions that might be affecting the display of the adaptive card. This could include:

    • If-Else Statements: Ensure there are no conditions that skip the adaptive card on the first query.
      • Flags or Counters: Check if there are any flags or counters that differentiate between the first and subsequent queries.
      Event Handlers: Review any event handlers that trigger the display of the adaptive card. Make sure they are set to activate on the first query. Caching Mechanisms: Examine any caching mechanisms that might be storing the initial response without the adaptive card. Ensure that the cache is refreshed or invalidated appropriately. SharePoint Integration Code: If the adaptive card relies on data from SharePoint, ensure that the data is being fetched and processed correctly on the first query.

1 additional answer

Sort by: Most helpful
  1. Jonathan Harrison 170 Reputation points
    2025-01-15T14:10:43.8033333+00:00

    It sounds like you're experiencing an issue where the adaptive card for feedback isn't appearing on the first query but only on subsequent queries. This could be due to a few reasons:

    Initialization Delay: The adaptive card might not be initialized or loaded properly on the first query. This could be due to a delay in the system recognizing the need to display the feedback mechanism.

    Caching Issue: The system might be caching the initial response without the feedback mechanism. When you ask again, it refreshes and includes the adaptive card.

    Conditional Logic: There might be a condition in your code that only triggers the feedback mechanism on subsequent queries. Check if there's any logic that differentiates the first query from the following ones.

    SharePoint Integration: The integration with SharePoint might be causing a delay or an issue in fetching the data and displaying the adaptive card simultaneously.

    To troubleshoot this, you can:

    • Check the Initialization: Ensure that the adaptive card is being initialized correctly on the first query.
    • Review the Code: Look for any conditional logic that might be affecting the display of the adaptive card.
    • Test with Different Scenarios: Try different scenarios to see if the issue persists and identify any patterns.
    • Debug Logs: Use debug logs to trace the flow and identify where the process might be breaking down.It sounds like you're experiencing an issue where the adaptive card for feedback isn't appearing on the first query but only on subsequent queries. This could be due to a few reasons: Initialization Delay: The adaptive card might not be initialized or loaded properly on the first query. This could be due to a delay in the system recognizing the need to display the feedback mechanism.
      Caching Issue: The system might be caching the initial response without the feedback mechanism. When you ask again, it refreshes and includes the adaptive card.
      
         Conditional Logic: There might be a condition in your code that only triggers the feedback mechanism on subsequent queries. Check if there's any logic that differentiates the first query from the following ones.
      
            SharePoint Integration: The integration with SharePoint might be causing a delay or an issue in fetching the data and displaying the adaptive card simultaneously.
      
      To troubleshoot this, you can:
      • Check the Initialization: Ensure that the adaptive card is being initialized correctly on the first query.
      • Review the Code: Look for any conditional logic that might be affecting the display of the adaptive card.
      • Test with Different Scenarios: Try different scenarios to see if the issue persists and identify any patterns.
      • Debug Logs: Use debug logs to trace the flow and identify where the process might be breaking down.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.