Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Community members,
I am working on using Fabric Data Agent in a standalone Chat application using Python. The blogs found are mostly relevant on how to use Data agent within Fabric Notebooks. I would like to get some help on how to expose Data agent into a Python application. In the past I have done this using GraphQL and it's working fine. I hope someone already tried and would love to connect to discuss the approach. Please help with source code or resources to get started.
The package fabric_data_agent_sdk is not working in python application but works in Fabric notebooks.
Solved! Go to Solution.
Hi @NarendraReddy ,
we tried something similar – using Fabric Data Agent outside of notebooks didn’t work for us either. The fabric_data_agent_sdk is currently scoped to run only inside Fabric runtime, so it won’t work in a standalone Python app (yet).
Here’s what we did instead:
1. Use REST API directly
If your agent is connected to a data source, you can expose it via a custom REST endpoint or use Power BI REST APIs to trigger actions indirectly.
2. Use GraphQL (like you mentioned)
That’s still the best workaround if you want to integrate with external apps. You can wrap the agent logic in a Fabric notebook and expose it via a GraphQL or REST layer.
3. Wait for SDK support
We heard SDK support for external apps is on the roadmap, but no public ETA yet.
Let me know if you want a sample setup using notebook + REST wrapper.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
Hi @NarendraReddy ,
Just checking in – did the steps I shared help resolve the issue?
✅ If it’s working now, feel free to mark the response as the Accepted Solution. This helps others who face the same issue find the fix faster.
✨ And of course, a little Kudos would be much appreciated!
If you're still running into trouble, let me know what you've tried so far and I’ll help you dig deeper. We’ll get it sorted!
Thank you. this aligned with my understaning of the Data Agent .
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @NarendraReddy ,
Just checking in – did the steps I shared help resolve the issue?
✅ If it’s working now, feel free to mark the response as the Accepted Solution. This helps others who face the same issue find the fix faster.
✨ And of course, a little Kudos would be much appreciated!
If you're still running into trouble, let me know what you've tried so far and I’ll help you dig deeper. We’ll get it sorted!
Hi @NarendraReddy ,
we tried something similar – using Fabric Data Agent outside of notebooks didn’t work for us either. The fabric_data_agent_sdk is currently scoped to run only inside Fabric runtime, so it won’t work in a standalone Python app (yet).
Here’s what we did instead:
1. Use REST API directly
If your agent is connected to a data source, you can expose it via a custom REST endpoint or use Power BI REST APIs to trigger actions indirectly.
2. Use GraphQL (like you mentioned)
That’s still the best workaround if you want to integrate with external apps. You can wrap the agent logic in a Fabric notebook and expose it via a GraphQL or REST layer.
3. Wait for SDK support
We heard SDK support for external apps is on the roadmap, but no public ETA yet.
Let me know if you want a sample setup using notebook + REST wrapper.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
Hi @burakkaragoz could you please share sample setup using notebook + REST wrapper.
Hi @burakkaragoz could you please provide sample setup using notebook + REST wrapper.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.
User | Count |
---|---|
41 | |
17 | |
8 | |
6 | |
3 |
User | Count |
---|---|
48 | |
45 | |
14 | |
8 | |
6 |