Add FAQ via Insert FAQ API in Advance Mode

I am trying to insert a FAQ via the insert FAQ API, but the FAQ is added, and the answer opens in the Standard Text, not in Advance Mode.
How can I add answer to the advanced message section in Knowledge AI, along with the channel as Hangout and tags?

I tried using the API body with the answerPayload set to type=advanced, but it didn’t load the answer into the Advanced section. Could you please provide the necessary changes to the API?

“type”: “Advanced”,
“channel”: “hangoutschat”

Hello @meghali.gawande,

Thank you for reaching out to Kore.ai Community
Could you please share the curl used and also share the relevant screenshots ?

Thank you,
Srujan Madderla
Kore.ai Community Team

Hi @srujan.madderla ,

Thank you for your reply.
I sent you an email, but it was undeliverable.

Thanks and regards,
Meghali

Hi @srujan.madderla ,

Below is the curl command used:

“faqs”: [

{

"questionPayload": {

"question": "What is kore.ai ?",

"tagsPayload": []

},

"answerPayload": [

{

"text": "{'cardsV2': [{ 'cardId': 'unique-card-id','card': { 'header': { 'title': 'Synchronisation issue due to a missing File'},'sections' : [{'header': '', 'widgets': [{'textParagraph': {'text': 'After a check-out, create the File and associate it to the Label \nThe synchronisation will be done without a error'}}]}, {'header': ' Domain:', 'widgets': [{'textParagraph': {'text': 'DMU'}}]}]}}]}",

"type": "advance",

"channel": "hangoutschat"

}

],

"knowledgeTaskId": "64d7e6d39064e0346d8ba39f",

"subQuestions": [],

"responseType": "message",

"subAnswers": [],

"streamId": "st-620c9b36-08fa-5bc5-a612-71919807e33f",

"parent": "701b7be7-efde-4abc-bb28-329126076e37",

"leafterm": "HR Assistant",

"qsId": "qna-f80e58a4-13da-5556-89c2-3fcee5cbefd9"

}

]

}

The answer is not being written in the advanced section of Knowledge AI. Please find the attached relevant screenshots.

Thanks,
Meghali

Hi @srujan.madderla,

Could you please provide the solution to the above issue?

Thanks,
Meghali

Hello Meghali,

Apologies for the delay in response.
From the screenshot it shows that you are trying to use to use standard text editor also.

If you wish to use advanced mode please clear the text/code from, the standard text editor.

Hope this helps.

Thank you,
Srujan Madderla
Kore.ai Community Team

Hi Srujan,

Could you please provide the sample curl command to add the FAQ in advance mode?

Thank You,
Meghali

Hi Srujan,

Could you please provide a sample curl command to add the FAQ in advance mode in ‘hangoutschat’ channel?

Thank You,
Meghali

Hello Meghali,

Please refer to the below documentation for the required curl’s

Thank you,
Srujan Madderla
Kore.ai Community Team

Hi Srujan,

I already used this command as per the documentation you sent.
–data '{
“fileUrl”:"https://www.icicibank.com/nri-banking/money_transfer/faq/m2i-rewards-program/loyalty-program.page",
“name”:“Test”

}’

Could you please share the curl command to Add FAQ in Advance mode?

Thanks and Regards,
Meghali