Skip to main content

Notifications

Community site session details

Community site session details

Session Id : W2fDXcdlBkBji/jrW3UZG1
Copilot Studio - General
Suggested answer

How can we fetch SQL database data as per user questions

Like (0) ShareShare
ReportReport
Posted on 10 Dec 2024 13:39:30 by 101
Hello,
 
I've website where first step is login page and after login fetching data based on logged in user. E.g. property, bookings, customer etc..
Now from CoPilot studio I need data based on user's question. Question could be in natural language. Find the example of questions.
 
1) Question: Give me list of all my properties
 Answer:  It should fetch data from DB/restAPI and give property names in table format
2) Question : Give all bookings data of "Sai Villa" property
Answer: It will give all bookings against that "Sai Villa" property with booking number, booking dates etc.. information in table format
 
So bottom line is that as per user query it should give dynamic data in table format.
 
Thanks
Categories:
  • Suggested answer
    Artur Stepniak Profile Picture
    1,521 Super User 2025 Season 1 on 11 Dec 2024 at 08:23:29
    How can we fetch SQL database data as per user questions
    Hello,
     
    not sure about what's your question. Would you like to ask if it's possible or how to achieve these functionalities? Nevertheless, it's possible but it depends on the data that you have. You'd need to implement topics/actions to call the API based on the user prompt and then return GPT-generated answer.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started