cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BenMadine
Frequent Visitor

Copilot - Generative Answers returning blank/empty

Hi,

 

I am using the 'Create Generative Answers' node in copilot studio along with Servicenow KB Articles connector, in order to achieve a response from the bot. However, the 'Create Generative Answer' node answer always returns blank/empty and I am not sure why...

I have checked the variables while running and Knowledge articles are being returned. I have also set the content moderation to low but I am still getting no results. 

 

I am new to copiltot studio and power automate but if anyone could help, it would be much appreciated!

 

Thanks

8 REPLIES 8
adilei
Copilot Studio
Copilot Studio

Can you share some examples for the custom data payload and questions that aren't answered?

The first KB returned from the Servicenow connector is the exact one I am trying to trigger but generative answers never seem to pick up on this. I have realised that the formatted value (the value after I get it from service now) is only containing the title and an empty value, which is due to the 'Set Variable Value' node (Can be seen at bottom). If this doesnt contain data could that be why there is no answer being generated? However, following this tutorial: https://www.youtube.com/watch?v=xRsoHOq4oKA, it seems to work for this guy? 

 

Thanks for your help!

 

This is my question: "I cant find the software im looking for in the tech store"

 

This is what is returned from the ServiceNow Connector: 

{
  "articles": [
    {
      "fields": {},
      "id": "kb_knowledge:68cfa804c30f35186e7f521c05013188",
      "link": "?sys_kb_id=68cfa804c30f35186e7f521c05013188&id=kb_article_view&sysparm_rank=1&sysparm_tsqueryId=13f2104bc31906141074fdbb050131aa",
      "number": "KB0013381",
      "rank": 1,
      "score": 1994.2146,
      "snippet": "Requesting <strong>software</strong> The <strong>Tech</strong> <strong>Store</strong> <strong>software</strong> catalogue contains all products that have been approved Request (see below) to get the latest version. Can't <strong>find</strong> the <strong>software</strong> you're <strong>looking</strong> for? If the <strong>software</strong> is not available in the drop down menu in <strong>Tech</strong> <strong>Store</strong> then it has not yet been approved",
      "title": "Spark - Requesting software"
    },
    {
      "fields": {},
      "id": "kb_knowledge:ed8a0dca1b81e510d54f2134b24bcb7e",
      "link": "?sys_kb_id=ed8a0dca1b81e510d54f2134b24bcb7e&id=kb_article_view&sysparm_rank=2&sysparm_tsqueryId=13f2104bc31906141074fdbb050131aa",
      "number": "KB0021107",
      "rank": 2,
      "score": 1451.1484,
      "snippet": "-30 is unreachable_AT ENLCS To <strong>Find</strong> the Monitored Item 6. To remove line breaks within a cell, Select the Cell, Ctrl <strong>Find</strong>, In the <strong>Find</strong> What field you need to press the CTRL button and the J button at the same time. In the replace with field have nothing, then click the <strong>find</strong> and replace button on the column you wish",
      "title": "HPOV Monitored Items - Alias Work Instructions"
    },
    {
      "fields": {},
      "id": "kb_knowledge:afd63d761b4091549a832134b24bcb0d",
      "link": "?sys_kb_id=afd63d761b4091549a832134b24bcb0d&id=kb_article_view&sysparm_rank=3&sysparm_tsqueryId=13f2104bc31906141074fdbb050131aa",
      "number": "KB0019669",
      "rank": 3,
      "score": 207.307,
      "snippet": " report an issue If you need to report an issue or ask a question related with a <strong>Tech</strong> <strong>Store</strong> order please submit <strong>Tech</strong> <strong>Store</strong> Hardware/<strong>Software</strong> Order Issue - https://sky.service-now.com/techss?id=tk_cat_item on the <strong>Tech</strong> Self Service page (https://tech.at.sky/techss) If you can’t <strong>find</strong> what you’re <strong>looking</strong>",
      "title": "Agent Workspace - Canned Responses and Autopilot"
    }
  ],
  "meta": {
    "properties": {
      "count": 22,
      "end": 3,
      "fields": "body",
      "filter": "",
      "kb": "",
      "language": "en",
      "query": "I cant find the software im looking for in the tech store",
      "start": 0,
      "status": {
        "code": 200
      },
      "ts_query_id": "13f2104bc31906141074fdbb050131aa"
    },
    "type": "object"
  }
}

 

 

 Formatted value: 

[
  {
    "Content": "HPOV Monitored Items - Alias Work Instructions - ",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:ed8a0dca1b81e510d54f2134b24bcb7e"
  },
  {
    "Content": "Spark - Requesting software - ",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:68cfa804c30f35186e7f521c05013188"
  },
  {
    "Content": "Windows 10 Guide - ",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:8079f09ddb2deb00a3aa399ffe96190c"
  }
]

 

 

adilei
Copilot Studio
Copilot Studio

You should have mapped "snippet" to "Content", not just the title. The LLM looks in "Content" to generate a response to your question, and in your case "Content" has almost nothing.

 

BTW, you can use "Title" for the article title:

 

[
 {
  Content: "This is a sample piece of text that was provided for testing purposes, to be replaced with content of your choice",
  ContentLocation: "https://contoso.com/p1.htm",
  Title: "Contoso Sample"
 },
 {
  Content: "This is a second bit of sample text that can be replaced with content of your choice",
  ContentLocation: "https://fabrikam.com/p2.htm"
 },
 {
  Content: "This is a third bit of sample text that can be replaced with content of your choice",
  Title: "Adventure Works Cycles Sample"
 }
]

Thanks for your help and that has improved the result but I still didn't get what I was looking for (see attached). You can see that it went the correct route and "almost" generated a good answer. 

 

Can you advise on how I can improve this please? This is the new formatted JSON:

 

[
  {
    "Content": "Spark - Requesting software - Requesting <strong>software</strong> The <strong>Tech</strong> <strong>Store</strong> <strong>software</strong> catalogue contains all products that have been approved Request (see below) to get the latest version. Can't <strong>find</strong> the <strong>software</strong> you're <strong>looking</strong> for? If the <strong>software</strong> is not available in the drop down menu in <strong>Tech</strong> <strong>Store</strong> then it has not yet been approved",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:68cfa804c30f35186e7f521c05013188"
  },
  {
    "Content": "HPOV Monitored Items - Alias Work Instructions - -30 is unreachable_AT ENLCS To <strong>Find</strong> the Monitored Item 6. To remove line breaks within a cell, Select the Cell, Ctrl <strong>Find</strong>, In the <strong>Find</strong> What field you need to press the CTRL button and the J button at the same time. In the replace with field have nothing, then click the <strong>find</strong> and replace button on the column you wish",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:ed8a0dca1b81e510d54f2134b24bcb7e"
  },
  {
    "Content": "Agent Workspace - Canned Responses and Autopilot -  report an issue If you need to report an issue or ask a question related with a <strong>Tech</strong> <strong>Store</strong> order please submit <strong>Tech</strong> <strong>Store</strong> Hardware/<strong>Software</strong> Order Issue - https://sky.service-now.com/techss?id=tk_cat_item on the <strong>Tech</strong> Self Service page (https://tech.at.sky/techss) If you can’t <strong>find</strong> what you’re <strong>looking</strong>",
    "ContentLocation": "https://skydev3.service-now.com/techss?id=tk_article&sys_id=kb_knowledge:afd63d761b4091549a832134b24bcb0d"
  }
]
adilei
Copilot Studio
Copilot Studio

That's probably because there is no content in the payload that can be used to generate an answer. If the user's query is "I can't find software I'm looking for", then the payload has to have some content about what to do in such cases. 

Thanks for your help but I am unable to map the description of the KB Article to formatted JSON object, so that content actually contains content. I can only map the parent keys rather than the child keys. For example, I can map snippet but I am unable to map fields.text.value or fields.sys_id.value even though they are in response JSON from ServiceNow connector. Do you know of a way around this? 

 

I'm not sure that's the problem. What KB content do you expect to ground an answer to the question you shared?

Well I thought that if I send the whole description to the generative answers node in the content then it would have enough information to be able to respond, rather than just the snippet? Is that how it works?

 

Also is that possible as I would like the sys_id of the article so I can use it for the ContentLocation so I can direct the user to the correct link. The sys_id is a child of the fields object. 

 

  "articles": [
    {
      "fields": {
        "sys_id": {
          "display_value": "4d3458563787a2801f2e0c5754990e25",
          "label": "Sys ID",
          "name": "sys_id",
          "type": "GUID",
          "value": "4d3458563787a2801f2e0c5754990e25"
        }
....

  Again, thanks for your help!

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   😊Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Welcome to the Copilot Studio Community!

You are now a part of a vibrant growing group of peers and industry experts who are here to network, share knowledge, and even have a little fun!   If you have not yet registered, please visit here to learn how to register!   Now that you are a member, you can enjoy the following resources:   The Microsoft Copilot Studio Community Forums If you are looking for support with any part of Microsoft Copilot Studio, our forums are the place to go. They are titled "Forums" and there you will find technical professionals with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Copilot Studio Community forums! Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered!   Microsoft Copilot Studio Ideas Do you have an idea to improve the Microsoft Copilot Studio experience, or a feature request for future product updates? Then the "Copilot Studio Ideas" section is where you can contribute your suggestions and vote for ideas posted by other Community members. We constantly look to the most voted Ideas when planning updates, so your suggestions and votes will always make a difference.   News & Announcements The Copilot Studio Community News & Announcements is your stop to get all the latest news around Community events and announcements. This is where we share with the Community what is going on and how to participate!   Copilot Studio Samples, Learning and Video Galleries We have galleries that can assist you with information on creating a bot in our Webinars and Video Gallery,  and the ability to share the bots you have created in our Bot Sharing Gallery.  Check out the awesome content being shared there today!   Again, we are excited to welcome you to the Microsoft Copilot Studio Community family! Whether you are brand new to the world of bot creation or you are a seasoned Copilot Studio veteran, our goal is to shape the Community to be your ‘go to’ for support, networking, education, inspiration and encouragement as we enjoy this adventure together!   Let us know in the Community Feedback if you have any questions or comments about your Community experience. To learn more about the Community and your account be sure to visit our Community Support Area boards to learn more!   We look forward to seeing you in the Copilot Studio Community!The Copilot Studio Community Team

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

The Copilot Studio community is thrilled to share some exciting news!

We are embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools that our community advocates for.  We're proud to announce that the Copilot Studio community will pioneer this migration starting in June 2024. The move will mark the beginning of a new chapter, and we're eager for you to be a part of it. Following our lead, the rest of the Power Platform product sites will join us over the summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind, to connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages  

Users online (3,745)