microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
403 stars 176 forks source link

[Dev support]: Javascript Prompt Template Issue #1695

Closed nicolekaate closed 3 months ago

nicolekaate commented 4 months ago

Please be sure to check the Discussions Q&A section before filing a new question.

Question

How can I get my prompt to show up in teams ai bot?

Code snippets

My index.js image My skprompt.txt image Console image

What you have tried already

It only shows up in console.

I tried using: app.beforeTurn((context, state) => { state.temp.post = "Lorem Ipsum..."; }); from the teams-ai PROMPTS.md concepts on GitHub, but it still only shows in console.

Note: please use this template to file your questions regarding implementation. Once your question is answered, our team will move this question to Q&A in Discussions for findability.

corinagum commented 3 months ago

For the bot to send a message, you will need to send the activity for it to be added to the conversation.

https://github.com/microsoft/teams-ai/blob/main/js/samples/03.ai-concepts/a.twentyQuestions/src/index.ts#L150