chatcraft.org icon indicating copy to clipboard operation
chatcraft.org copied to clipboard

Turn tools into [agent] apps

Open tarasglek opened this issue 1 year ago • 1 comments

So I think I understand that chatcraft + tools is a chatgpt utility.

It's something more akin to hypercard or a smalltalk squeak. You can play in it, but you can also make end-user chat-apps.


We should turn our conversation import/export feature into a template-expansion feature.

An app is chatcraft + url for a chatcraft convo export with template tags + params for app

Below is an app example:

I am a stock trading expert.

1. You paste an earning report, I then process it into markdown with @fn-url:github/foo/url2markdown
2. Once it's converted i will tell you stock symbol and 'buy' or 'sell' action and reasons for doing that
"```commands
approve: @fn-url:github/foo/buy-or-sell
reject: @fn-url:github/foo/record-earnings-report-suggested-action-and-reason-why-action-wasnt-followed
"```
---
@param:report_url
---
@function_call_plus_response
---
Tell me if I should buy or sell

We would invoke app with a url: http://chatcraft.org/app/?template=https://gist.github.com/above_sample&report_url=https://www.nasdaq.com/market-activity/stocks/nvda/earnings

  1. chatcraft would import this conversation
  2. it would then execute the function_call_plus_respons
  3. then send it back to openai with "Tell me if I should buy or sell" appended
  4. there could be quite a few of these interactions specified in the template
  5. At the end user can keep talking to gpt as usual
  6. user finishes his convo with /approve or /reject commands

tarasglek avatar Aug 13 '23 10:08 tarasglek