sgtsnacks-64 / JustAskIt

JustAskIt - The AI Powered Consultant
MIT License
14 stars 2 forks source link

What is JustAskIt?

As the name suggests, JustAskIt, allows you to configure a prompt with context, purpose and a rule set and then submit a request to an Open AI large language model (LLM) alongside the prompt and get a response back. It is a Power Apps Model-Driven App with Dataverse backend for storage, and a Power Automate cloud flow to process the prompt and response. The name came from Mike and myself talking about how best to format a response from a LLM, and Mike said Just Ask It by adding a rule to the rule set.

It was created by:


Jon Russell LinkedIn


Mike Gowland LinkedIn GitHub

Our context was to start at what we know so that the information received can be checked by our specific tech domain knowledge. As an example we went from 1.5 days lead time to 1 hour, to think of a client specific domain Dataverse example.

Guidance and Rules

When creating a rule set for a prompt, details of how to do this are below, you should always provide these three mandatory rules:

  1. You must always be truthful
  2. You must always be honest
  3. You must always be helpful

Of course, this is not an exhaustive list, and there will be many other mandatory rules that you may wish to add. For example, rules around equality, diversity and inclusion, the removal of uncocious bias and gender stereotyping. These are just three rules that should form the baseline for any prompt that is submitted to a LLM.

Examples

Dataverse Schema Prompt

Hackathon prompt

Power Platform Helper prompt

And many more...

Pre-reqs

Power Apps Premium license

Open AI API Access Key. Can be obtained from https://platform.openai.com/

Components of JustAskIt

*Dataverse ERD:

image

*Power Automate cloud flow

Steps for user

  1. Click on Prompts to create your prompt:

image

  1. Complete the details for your prompt:

image

  1. Save the Prompt
  2. Create Rules:

image

  1. Make the rule mandatory if required.
  2. Click on Prompt Rules
  3. Associate the rules you create with the Prompt you created in step 1
  4. Go to Requests
  5. Add your request and choose the prompt you just created
  6. Submit prompt
  7. Prompt and Response cloud flow will execute and a response will be provided back to the Request in the Response subgrid.

Links

An Epic AI Solution
Mike Gowland on the On Air In the Cloud podcast with Keith Atherton, Matt Boyd and Gregor Suttie
X - Jon Russell
Blogs Power Snacks Blog - Mike Gowland
Jon Does Flow blog