1795894440036

Ten small use cases for practicing Copilot Studio workflows. In each one, the user gives an input, a workflow calls a FastAPI endpoint (your own or a third-party one), and the result comes back as the reply.

1. Simple Reverser

Get the text from the user and reverse it with the help of FastAPI.

  • Input: one
  • Output: eno

2. Country Info

Get the country name from the user and return its details with the help of a third-party FastAPI endpoint.

  • Input: Canada
  • Output: Capital: Ottawa | Currency: Canadian dollar | Languages: English, French

3. Word Counter

Get the text from the user and return the number of words with the help of FastAPI.

  • Input: I love Toronto winters
  • Output: 4

4. Temperature Converter

Get the temperature in Celsius from the user and convert it to Fahrenheit with the help of FastAPI.

  • Input: 25
  • Output: 77 °F

5. Currency Converter

Get the amount in CAD from the user and convert it to INR with the help of a third-party FastAPI endpoint.

  • Input: 100
  • Output: ₹6,150 (based on the live exchange rate)

6. Mortgage Payment Calculator

Get the home price, down payment, interest rate and amortization period from the user. Use FastAPI to calculate the monthly mortgage payment with Canadian semi-annual compounding, and return the total interest over the amortization.

  • Input: $600,000, $100,000 down, 5%, 25 years
  • Output: Monthly payment: $2,908 | Total interest: $372,400

7. Provincial Sales Tax Calculator

Get the item price and province from the user. Use FastAPI to apply the right sales tax (GST, PST or HST) for that province, and return the tax breakdown and final price.

  • Input: $200, Ontario
  • Output: HST (13%): $26 | Total: $226

8. Weather Alert by Postal Code

Get a Canadian postal code from the user. Use third-party FastAPI endpoints to find the city, fetch the current Environment Canada forecast and any active weather warnings, and return a short summary with advice.

  • Input: M5J
  • Output: Toronto, ON | -6 °C, snow | Warning: Snowfall 15–20 cm tonight | Advice: Allow extra commute time, take the TTC

9. Tip and Bill Splitter

Get the bill amount, tip percentage and number of people from the user. Use FastAPI to calculate the tip, the total and the amount each person pays.

  • Input: $120, 15%, 4 people
  • Output: Tip: $18.00 | Total: $138.00 | Per person: $34.50

10. Fuel Consumption Converter

Get the fuel consumption in L/100 km from the user and convert it to US miles per gallon (mpg) with the help of FastAPI.

  • Input: 8
  • Output: 29.4 mpg (US)