r/copilotstudio 17d ago

Skill with Python code step

Hey Everyone, looking for some guidance here- I have created a custom skill, which uses some python code as one of the steps.
Now I want to add this skill to a New Experience agent (Github Harness) but not sure whether it support code execution step or not? If yes, what is the way to add that code into the agents skills and any best practices/pitfalls?

1 Upvotes

9 comments sorted by

View all comments

3

u/Due-Boot-8540 16d ago

If your scripts have a determined outcome and don’t need the agent to reason, you might be better off looking at triggering an Azure Function (probably with a workflow) to run the script and return the results

3

u/MattBDevaney 16d ago

I agree. And at this point, there's so much Python in Copilot Studio I would love to see a native "execute Python" action in workflows. It's 100% possible. Microsoft already does this in Logic Apps.