Share via

Semantic Kernel with Azure Bot C#

Madan, Mohit 50 Reputation points
2023-10-03T12:40:30.7266667+00:00

Hi Team,

Could you please advise how can we utilize the Semantic Kernel in the existing Azure Bot (based on C#)?

Regards,

Mohit

Azure OpenAI in Foundry Models
0 comments No comments

Answer accepted by question author

Pramod Valavala 20,661 Reputation points Microsoft Employee Moderator
2023-10-03T18:31:15.5466667+00:00

@Madan, Mohit To extend your existing bot, you could integrate Semantic Kernel as a skill.

In your skill bot, you would take the input query received via the OnMessageActivityAsync handler and pass that to a planner object instantiated using Semantic Kernel.

At this point, you would either share the plan with the user for confirmation if required or invoke the plan directly to share the result back as a response.

The kernel in Semantic Kernel itself would be instantiated when the skill bot starts up like any other dependent service.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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