This article explains how to use AI Builder’s “Prompts” from Copilot Studio.
Using Generative AI from Copilot Studio
- Generative responses
- Prompt actions (AI Builder)
While it’s also possible to connect to AI services like Azure OpenAI through custom connectors or Power Automate, starting with these two methods is probably the best approach.
In this article, I’ll explain how to use AI Builder’s “AI Prompts” from Copilot Studio actions (Prompt actions).

Prompt Actions


What is the highest mountain in the world?
The highest mountain in the world is Mount Everest. It is located in the Himalayas, with an elevation of approximately 8,848 meters (29,029 feet). Everest straddles the border between Nepal and China and is a challenge for many climbers. Proper preparation and information gathering are essential when planning a climb.
Prompt (JSON Input):
[
{“role”: “user”, “message”: “What is the highest mountain in the world?”},
{“role”: “assistant”, “message”: “The highest mountain is Mount Everest. It is located in the Himalayas, and its elevation is approximately 8,848 meters.”},
{“role”: “user”, “message”: “What is the second highest?”}
]
Response:
The second highest mountain in the world is K2. It is located in the Karakoram range, and its elevation is approximately 8,611 meters.
Basic Usage






User Input:
The largest lake in Japan
Bot Response:
The largest lake in Japan is Lake Biwa. Located in Shiga Prefecture, it has an area of approximately 670 square kilometers. Lake Biwa is known for its beautiful natural environment and historical sites, making it a popular tourist destination. There are also many places around the lake where you can enjoy recreational activities. If you’d like to know more about Lake Biwa, please let me know!

Generating Responses with Data Retrieved from Other Nodes



Prompt:
Create a weather forecast based on the following information:
### info
{weather_info}
Note: Replace {weather_info} with the dynamic value selected from the “Add” menu.

User:
Tell me the weather
Bot:
Where?
User:
Saitama
Bot:
Weather Forecast
Daytime Forecast: Today will be mostly sunny. The high will be 12 degrees.
Nighttime Forecast: Tonight will be partly cloudy. The low will be 0 degrees.
When going out, it will be warm during the day but cold at night, so please dress accordingly.
Generating Responses with Data Retrieved from Dataverse

Prompt:
Based on the following information, tell me the age in months of the cat named “{cat_name}”.
# today: {today}
# cat info:
## name: {Name}
## birthday: {BirthDate}
Note:
{cat_name} and {today} are input arguments (Blue chips).
{Name} and {BirthDate} are columns from the Dataverse table (Green chips).
User:
Tell me the cat’s age
Bot:
Which cat?
User:
Kotsubu
Bot:
The birthdate of the cat “Kotsubu” is February 1, 2020. Since today’s date is January 12, 2025, calculating Kotsubu’s age in months, she is 4 years and 11 months old as of January 12, 2025.

Structured Output (JSON Mode)
# Rules
## Extract “Surname only”, “Given name only”, or “Full name” as names.
## If the name is a “Full name”, insert a half-width space between the “Surname” and “Given name”.
## If multiple Japanese names are included in the string, extract all of them.
## If no Japanese names are included in the string, output an empty array.
# Input String
{input_string}

Bonus: Prompts Can Be Included in Solutions






コメント