Welcome message in prompt flow

Matej Jakubčík 140 Reputation points
2024-12-09T07:28:22.8133333+00:00

Hi!

I was wondering if there is a way to set up a welcome message in AI Studio prompt flow interface. Basically when user opens a chat window some message like "Hi, how can I help you?" will be shown even without users input. Thanks and have a good day

MJ

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saideep Anchuri 9,425 Reputation points Microsoft External Staff Moderator
    2024-12-09T11:26:25.23+00:00

    Hi Matej Jakubčík

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    To set up a welcome message in the AI Studio prompt flow interface, you can use the Prompt tool with below templating. First, create or open a flow and add the Prompt tool. You can then define the welcome message using below syntax to dynamically greet the user. For example:

    Welcome to {{ website_name }}!
    {% if user_name %}
        Hello, {{ user_name }}!
    {% else %}
        Hello there!
    {% endif %}
    Please select an option from the menu below:
    1. View your account
    2. Update personal information
    3. Browse available products
    4. Contact customer support
    

    This template checks if the user_name variable is available and greets the user by name, or uses a generic greeting if not. After preparing the prompt, enter the necessary input parameters and run the flow. This setup will show a personalized welcome message when the user opens the chat window, even before any input.

    kindly refer the below document: https://learn.microsoft.com/en-us/azure/ai-studio/how-to/prompt-flow-tools/prompt-tool?source=recommendations

    Thank You.

    0 comments No comments

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.