top of page

Create your first AI Assistant using Azure OpenAI Studio

Updated: Feb 22

Microsoft’s Azure OpenAI is a powerful platform that allows you to create such AI assistants. Azure OpenAI Assistant, powered by GPT-4, is a versatile tool with a wide range of capabilities. Here are some of the things it can do:

  1. Answer Questions: The assistant can provide answers to a wide variety of questions, from general knowledge to specific topics. It can understand complex queries and provide detailed responses.

  2. Generate Content: The assistant can generate creative content such as stories, poems, and even code. This can be particularly useful for tasks like content creation, programming help, and more.

  3. Language Understanding: The assistant can understand and communicate in multiple languages, making it a useful tool for users around the world.

  4. Task Automation: The assistant can help automate tasks. For example, it can help schedule meetings, set reminders, send emails, and more.

  5. Learning and Training: You can train the assistant on specific tasks or domains, improving its performance and making it more useful for your specific needs.

  6. Code Writing and Interpretation: With the Code Interpreter feature, the assistant can write and interpret code in various programming languages.

This article will guide you through the process of creating your first Azure OpenAI Assistant using Azure OpenAI Studio.

Let's get started!

Steps to Create Your First AI Assistant


  1. You’ll need an Azure subscription (you can create one for free),

  2. Access granted to Azure OpenAI in the desired Azure subscription

  3. An Azure OpenAI resource with gpt-4 (1106-preview) model deployed.

STEP 1: Navigate to Azure OpenAI Studio. Click "Assistants (Preview)".

Azure OpenAI Assistant (Preview)

This will take you to the Assistant playground. The assistant playground allows you to quickly iterate and experiment with new ideas. You can create a new AI assistant or select an existing assistant.

Azure OpenAI Assistant Playground

STEP 2: In the Assistant playground, you’ll find the “+ New” option. Clicking on this allows you to create a new AI assistant.

Azure OpenAI Assistant  - Assistant Setup

Enter the following credentials:

  1. Assistant name: Enter a unique name for your assistant.

  2. Instructions: Enter the Instructions as "You are an AI assistant that can write code to help answer math questions".

  3. Deployment model: Select "gpt-4-1106-preview" from the dropdown menu.

  4. Turn on the toggle for Code interpreter. This will enable your assistant to interpret and generate code. This is particularly important if you want your assistant to be able to write or understand code.

Click on "Save".

Interacting with the Assistant

After setting up your assistant, you can start a chat session. Now, in the chat session, you can enter questions or prompts for the assistant to answer.

Azure OpenAI Assistant - Chat Session

For example, you might ask it to solve a math problem.

Enter the following math question:

Question: I need to solve the equation 3x + 11 = 14.

Click the "Add" button to submit the question. The assistant will process your question and provide an answer.

The output will be:

Answer: The solution to the equation (3x + 11 = 14) is (x = 1).

This means that the value of x that makes the equation true is 1.

Understanding the code behind the solution

The Azure OpenAI Assistant doesn’t just provide answers, it can also show you the code it used to arrive at the solution. This is particularly useful for understanding how the assistant works and for learning how to solve similar problems in the future.

To see the code the assistant used to solve a problem, you can ask it directly. For example, after getting the solution to the equation, you can ask:

Question: Show me the code you ran to get this solution.

The assistant will then provide a block of Python code as a response, used to solve the equation.

You will get the following result:

from sympy import symbols, Eq, solve 

# Define the variable 
x = symbols('x') 

# Define the equation 
equation = Eq(3*x + 11, 14) 

# Solve the equation 
solution = solve(equation, x) 


Microsoft’s Azure OpenAI Assistant, powered by GPT-4, is a powerful and versatile tool that can revolutionize the way we interact with technology. From answering complex queries to generating creative content, automating tasks, and even writing and interpreting code, the possibilities are endless. This guide walked you through the process of creating your first AI assistant using Azure OpenAI Studio, highlighting the platform’s capabilities and ease of use.


bottom of page