The Yoda Guide
Tags: powerapps, powerautomate, powerfuldevs, chatgpt
Published: 2023-05-05 12:02:56

## Intro:
**May the Fourth be with you!** To celebrate Star Wars day, this blog showing you how to build a PowerApp that uses Azure Open AI to respond like your favorite character, such as Yoda. With the help of Power Automate, we'll be able to make our PowerApp even smarter and more interactive

**Conceptual Architecture View**:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efdkemq14vkxnp9euaiu.png)



The flow would be as below. I have leveraged 2 prompts.

Prompt 1:

```
The blog post, if any, should be less than one paragraph and is intended for software engineers.

The content of the post, if any, should energize and motivate the audience.
[Start of topic]
#Input text
[End of topic]
```

The second prompt is to rephrase the response as uttered by Yoda

```
Summarize the text below in less than one paragraphs and rephrase the content as a response of Yoda, starwars beloved fictional character  without adding new information.
[Start of topic]
#Prompt 1 output
[End of topic]
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i604qur32ylzxwinkudf.png)

**Demo**:
![Image description](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNzU4MmM1Y2RiNTI3YjU3YmNjOThiYmUwZWY3M2E2MWUxMzVmMjkxZSZlcD12MV9pbnRlcm5hbF9naWZzX2dpZklkJmN0PWc/tUUQVysEeFTKgSdTNZ/giphy.gif)

![Image description](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExMzg2NGE2Zjk4NTE1N2Y3YWJiYWZlYmRmYzg4ZTI1MzlkYmU4ZmFkNiZlcD12MV9pbnRlcm5hbF9naWZzX2dpZklkJmN0PWc/2a8nUOiIuTMVUHAc28/giphy.gif)


**Sample Outputs**:

| Question                                                                                                                                                                     | Yoda Response                                                                                                                                                                                                                                 | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| How do   you balance the need for speed and agility in software development with the   need for security, reliability, and compliance?                                       | "Difficult, this challenge   is, but together, success we can find. Plan ahead, create robust processes,   use latest tools and technologies - this is the way!"                                                                              | As software engineers, we are   constantly faced with the challenge of balancing the need for speed and   agility in development with the need for security, reliability, and   compliance. It's a difficult task, but one that can be achieved with the   right mindset and approach. By taking the time to plan ahead, create robust   processes, and use the latest tools and technologies, we can ensure that our   software is secure, reliable, and compliant while still delivering results   quickly and efficiently. Let's take on this challenge together and create   amazing software that meets all of our needs! |
| How do   you see the role of DevOps evolving in the next 5-10 years, and what emerging   technologies do you think will be most important in driving this   evolution?       | "DevOps the key to staying   ahead, it is. Evolve, technology will. Ready to take on the challenge,   be."                                                                                                                                    | The role of DevOps is only going   to become more important in the next 5-10 years. As technology continues to   evolve, DevOps will be the key to staying ahead of the competition. Emerging   technologies such as artificial intelligence, machine learning, and cloud   computing will be essential in driving this evolution. With DevOps, software   engineers will be able to create more efficient and reliable systems,   allowing them to stay ahead of the curve and remain competitive. So let's   embrace the future and get ready to take on the challenge of DevOps!                                            |
| What   advice would you give to young engineers who are just starting to learn about   AI and its potential applications?                                                    | Fear not the complexity of AI,   young software engineer. Embrace the challenge and use it to expand your   knowledge and skills. Unlock the potential of AI and make a real impact in   the world. Take the plunge and start learning today! | As a young software engineer,   don't be intimidated by the complexity of AI. Embrace the challenge and use   it as an opportunity to expand your knowledge and skills. AI is a powerful   tool that can be used to create innovative solutions to real-world problems.   With the right mindset and dedication, you can unlock the potential of AI and   make a real impact in the world. So don't be afraid to take the plunge and   start learning about AI today!                                                                                                                                                          |
|                                                                                                                                                                              |                                                                                                                                                                                                                                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

_Disclosure_: (Had to put this :grin: )
The responses generated by this app are dependent on the prompt question and are based on a generic language model. The app is intended for educational and entertainment purposes only and should not be relied upon for any serious or consequential matters. 
By using this app, you agree to release the concept from any liability arising from the use of the app or the responses generated by it.

**Resources**:
https://learn.microsoft.com/en-us/ai-builder/azure-openai-textgen