Giter Site home page Giter Site logo

ai-how-to-app's Introduction

AI How-To App

Overview

An AI How-To app built in Flutter using ConjureAPI.

It displays a list of how-to guides added by the user:

Guide List

It allows the user to add new how-to guides:

Add Guide Dialogue

Loading takes some time via OpenAI so I poll ConjureAPI to fetch the how-to guides when they're done loading:

Guide List

And once done you can view the interactive how-to guides generated by GPT-3.5:

Guide Detail

Data Generation

Data is generated using ConjureAPI which allows content generation matching a specific JSON format.

The Content Type specified on ConjureAPI is: "Instructions on How to Perform Tasks"

The following is the schema provided to ConjureAPI:

{
  "title": {
    "type": "string"
  },
  "description": {
    "type": "string"
  },
  "estimatedTime": {
    "type": "string",
    "pattern": "^(([1-9][0-9]*h)?\\s*)?([1-5][0-9]m)?$"
  },
  "requirements": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "item": {
          "type": "string"
        },
        "quantity": {
          "type": "string"
        },
        "notes": {
          "type": "string"
        }
      },
      "required": [
        "item",
        "quantity"
      ]
    },
    "minItems": 1
  },
  "steps": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "stepNumber": {
          "type": "integer",
          "minimum": 1
        },
        "instruction": {
          "type": "string"
        },
        "notes": {
          "type": "string"
        }
      },
      "required": [
        "stepNumber",
        "instruction"
      ]
    },
    "minItems": 1
  },
  "notes": {
    "type": "string"
  }
}

The how-to guide requested by the user is sent as a part of the query string to the ConjureAPI endpoint.

The ConjureAPI endpoint is configured in a .env file:

CONJURE_API_URL=https://www.conjureapi.com/endpoints/<endpoint>
CONJURE_API_APPLICATION_ID=<Application ID>
CONJURE_API_ACCESS_TOKEN=<Application Access Token>

Building and Releasing

Set up a ConjureAPI endpoint and configure the .env file with it like above

Follow these official guides:

ai-how-to-app's People

Contributors

topazoo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.