Problem Linking Custom Question Answering to power automate

Morna Florack 6 Reputation points Microsoft Employee
2022-01-06T08:05:27.253+00:00

Hi,
with QnA maker one could use "generate answer" in power automate to connect a flow to the knowledge base. As a new user I'm only able to create a new knowledge base under Language Studio. That worked well, but I assume the API has changed and I don't get the required information from Custom Question Answering resource to populate the "generate answer" in power automate.

Is there a new updated "generate answer" available that I missed or could you please suggest a workaround to get the connection between the flow that provides the search-sentence and expects the first-best answer back.
Thank you for your support in advance and kind regards, Morna

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,407 questions
0 comments No comments
{count} vote

6 answers

Sort by: Most helpful
  1. GiftA-MSFT 11,151 Reputation points
    2022-01-07T02:43:36.987+00:00

    Hi, once you publish your knowledge base, you'll get connection details that you can provide in power automate. Please review this document in more detail, let us know if it helps.


    --- *Kindly Accept Answer if the information helps. Thanks.*

    0 comments No comments

  2. Morna Florack 6 Reputation points Microsoft Employee
    2022-01-07T12:42:32.223+00:00

    Hi, thank you for supporting me, but after publishing my knowledge base it looks different from what is described in the documentation:

    163150-image.png

    when I use "get prediction URL" I get a sample curl request like: curl -X POST "https://westus.api.cognitive.microsoft.com/language/:query-knowledgebases?projectName.....

    there is much detail in this request, but I can't find knowlede base ID and Host in there.

    Please let me know where to find this information.
    thank you and kind regards, Morna

    0 comments No comments

  3. GiftA-MSFT 11,151 Reputation points
    2022-01-07T17:03:19.933+00:00

    Hmm, I just tried publishing a sample KB and mine looks similar to the documentation. Are you publishing from QnA portal? Here's another QuickStart document for your reference. You can also find connection details in QnA Portal > Select Knowledge Base > Settings > Scroll Down to Deployment Details as shown below. Hope this helps.

    163276-image.png

    0 comments No comments

  4. Morna Florack 6 Reputation points Microsoft Employee
    2022-01-07T17:35:26.95+00:00

    This seems to be the problem. I've followed the advice that QnA service was migrated from qnamaker.ai to cognitive service Language Studio under https://language.cognitive.azure.com/ :

    163247-image.png

    on qnamaker.ai it looks like:
    163235-image.png

    but I don't have the KB1 publisher line with the "settings" tab. Perhaps this is tied to my account type?


  5. Sergey Oreshin 1 Reputation point
    2022-04-18T16:50:43.313+00:00

    any updates?