Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NarendraReddy
Regular Visitor

Can we use Fabric Data Agent in a Python application?

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. 

 
Thanks & Regards
Narendra
2 ACCEPTED SOLUTIONS
burakkaragoz
Community Champion
Community Champion

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.

View solution in original post

burakkaragoz
Community Champion
Community Champion

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!

View solution in original post

6 REPLIES 6
NarendraReddy
Regular Visitor

Thank you. this aligned with my understaning of the Data Agent .

v-shamiliv
Community Support
Community Support

Hi @NarendraReddy 

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.

burakkaragoz
Community Champion
Community Champion

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!

burakkaragoz
Community Champion
Community Champion

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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.