|
1 |
| -### Hands-On Activity: Build a Basic AI-Powered Chatbot with Azure OpenAI Studio |
2 |
| -**Time:** 15 min |
3 |
| - |
4 | 1 | **Objective:**
|
| 2 | + |
5 | 3 | Use Azure OpenAI Studio to create a simple AI-powered chatbot that can handle basic user queries. This activity sets the foundation for building more advanced dialogue systems in later modules.
|
6 | 4 |
|
7 |
| -**Materials Needed:** |
| 5 | +**Materials needed:** |
| 6 | + |
8 | 7 | - Laptop or desktop with internet access
|
9 | 8 | - Azure OpenAI Studio access
|
10 | 9 | - An Azure account with OpenAI resources enabled
|
11 | 10 |
|
12 |
| -### Part 1: Create a Prompt-Based Chatbot in Azure OpenAI Studio |
| 11 | +## Part 1: Create a prompt-based chatbot in Azure OpenAI Studio |
13 | 12 |
|
14 | 13 | 1. **Log into Azure OpenAI Studio**
|
15 | 14 | - Go to [Azure OpenAI Studio](https://oai.azure.com/) and sign in using your Azure credentials.
|
16 | 15 |
|
17 |
| -2. **Start a New Chat Deployment** |
| 16 | +2. **Start a new chat deployment** |
18 | 17 | - Select a GPT model (such as `gpt-35-turbo`) and open a new chat playground session.
|
19 | 18 |
|
20 |
| -3. **Design Your Prompt Template** |
21 |
| - - Enter a system message that guides the chatbot’s behavior. |
| 19 | +3. **Design your prompt template** |
| 20 | + - Enter a system message that guides the chatbot's behavior. |
22 | 21 | Example:
|
23 |
| - *“You are a friendly customer support bot for a fictional online bookstore. Answer questions about orders, shipping times, and return policies.”* |
| 22 | + *"You are a friendly customer support bot for a fictional online bookstore. Answer questions about orders, shipping times, and return policies."* |
24 | 23 |
|
25 |
| -4. **Test Basic Queries** |
| 24 | +4. **Test basic queries** |
26 | 25 | - Try 3–4 user prompts such as:
|
27 |
| - - “Where’s my order?” |
28 |
| - - “How long does shipping take?” |
29 |
| - - “Can I return a book I’ve already opened?” |
30 |
| - - Refine your system prompt if the chatbot’s responses are too vague or stray off-topic. |
| 26 | + - "Where's my order?" |
| 27 | + - "How long does shipping take?" |
| 28 | + - "Can I return a book I've already opened?" |
| 29 | + - Refine your system prompt if the chatbot's responses are too vague or stray off-topic. |
31 | 30 |
|
32 |
| -### Part 2: Reflect and Extend |
| 31 | +## Part 2: Reflect and extend |
33 | 32 |
|
34 |
| -1. **Review Chat Flow and Output Quality** |
| 33 | +1. **Review chat flow and output quality** |
35 | 34 | - Does the chatbot give helpful, accurate, and relevant answers?
|
36 | 35 | - How well does it stay in character (for example, friendly and professional)?
|
37 | 36 | - What happens if the user asks an unexpected or off-topic question?
|
38 | 37 |
|
39 |
| -2. **Iterate on Your Prompt** |
| 38 | +2. **Iterate on your prompt** |
40 | 39 | - Add follow-up instructions to adjust tone, set boundaries, or clarify scope.
|
41 | 40 | Examples:
|
42 |
| - - “Make responses more concise.” |
43 |
| - - “Avoid answering questions outside of bookstore topics.” |
44 |
| - - “Add empathy if the user seems frustrated.” |
| 41 | + - "Make responses more concise." |
| 42 | + - "Avoid answering questions outside of bookstore topics." |
| 43 | + - "Add empathy if the user seems frustrated." |
45 | 44 |
|
46 |
| -3. **Optional: Add User Memory (Advanced Preview)** |
| 45 | +3. **Optional: Add user memory (advanced preview)** |
47 | 46 | - Experiment with short-term memory by summarizing user input or keeping context through prompt chaining (covered in later lessons).
|
48 | 47 |
|
49 |
| -**Expected Outcome:** |
| 48 | +## Expected outcome |
| 49 | + |
50 | 50 | Learners build a basic, prompt-driven chatbot using Azure OpenAI Studio. They learn how to guide tone and behavior through system prompts and test how the model responds to different user inputs. This hands-on experience lays the groundwork for developing more interactive and dynamic dialogue systems in upcoming modules.
|
0 commit comments