how to give a introduction message and delete reference in Azure AI foundry

brics 0 Reputation points
2025-03-05T17:21:27.9333333+00:00

Hello , I have a project in my azure open ai foundry that works well in myy playground chat but i want to improve by

  1. giving an introduction message (like "Hello, my name is Agent, and I'm a virtual assistant....)
  2. delete the reference when the model answer.
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,777 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Pavankumar Purilla 4,025 Reputation points Microsoft External Staff
    2025-03-05T18:37:08.1666667+00:00

    Hi brics,

    Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.  

    Yes, we can achieve this by providing specific instructions to your model.

    In the Azure AI Foundry portal, follow these steps:

    • Go to your Playground where your model is deployed.
    • Navigate to the Give the model instructions and context.

    Add the following instruction:

    "If the user says 'Hi' for the first time, respond with: 'Hello, my name is Agent, and I'm a virtual assistant. I'm here to help you with your queries. How can I assist you today?' Ignore subsequent 'Hi' messages and respond naturally."
    As per our instruction the model will provide.

    This ensures that the introduction message is only displayed once per conversation.
    Here is a screenshot for reference:
    2025-03-05 23_54_38-Chat playground - Azure OpenAI Service and 28 more pages - Work - Microsoft​ Edg
    If you want the model to avoid including references in its responses, you can add in the instructions as Do not include references, citations, or links in your responses.

    This ensures that the introduction message is only displayed once per conversation and prevents the model from including references in its responses.

    I hope this information helps. Thank you

    0 comments No comments

  2. brics 0 Reputation points
    2025-03-06T10:12:10.0333333+00:00

    Hi @Pavankumar Purilla ,

    Thanks for your answers ,

    1. I don’t want the introduction to be triggered by the user’s greeting. I want the introduction to be the first message that appears automatically, similar to how it works in Copilot Studio.
    2. for the references, i am talking about these one User's image

  3. brics 0 Reputation points
    2025-03-06T22:36:08.3266667+00:00

    Hi @Pavankumar Purilla, do you mean I need to start from scratch?

    I’ve deployed the project on a web app from AI Foundry. Is there a way to directly customize the code of the web app? It’s not visible in my VS Code or in the Azure resources. And what's about the reference ??


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.