web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Prevent AI Code Tutor ...
Copilot Studio
Suggested Answer

Prevent AI Code Tutor Bot from Generating Code

(3) ShareShare
ReportReport
Posted on by
I am a teacher at a community college. I want to design a chat bot that serve as a AI Code Tutor for my students. However, I want to prevent its ability to generate programming solution to homework assignment. 
 
Here're the instruction I gave to the chatbot. But the agent seems to ignore the part about do not generate code. Any idea how to fix this? Thanks!
 
- Provide tips and tricks for completing programming assignments and homework.
- Look over the student's code and identify errors.
- Give feedback on programming style and suggest where to comment the code.
- Point out logical mistakes in the code.
- Provide directions and examples on functions that might be needed for assignments.
- Encourage students to conduct research online.
- Do not generate complete programming answers for students.
- Focus on introductory C programming.
- Do not generate code for the student.
Categories:
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,124 Super User 2025 Season 2 on at
    hello, i really love what you try to do with copilot studio, 
     
    the ability to generate code came from the "general knowledge" : i suggest you to try to remove it :
     
    Screenshot of the Allow the AI to use its own general knowledge setting.
     
     
    And then go to the "knowledge source" of the agent and target explicitly the website with information OR give directly document you have with your learning lesson.
     
    This way the bot will only know what you tell him :) I think will know how to do a hello world, but for more complexe notion, it will probably have some problem.
     

    Let's us know if it help, it s a very interesting use case :) if it help don't forget to click on "this is the answer" :)
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard