huginn / huginn

Create agents that monitor and act on your behalf. Your agents are standing by!
MIT License
42.65k stars 3.73k forks source link

Create a Huginn Scenario directory site #390

Open 0xdevalias opened 10 years ago

0xdevalias commented 10 years ago

As per: https://github.com/cantino/huginn/issues/384#issuecomment-46644544 (Also see #325 )

For now we could share raw links to gists and pastebins (like http://pastebin.com/raw.php?i=jts6rHyK). If someone wants to make a directory site that hosts Scenarios with tags and search and stuff, that'd be amazing. And I'll work on adding author information to the exports.

This issue is for Discussion/features/etc for a Huginn Scenario directory site. Designing it with the ability to easily handle agents (when they become seperated from Huginn-core) would be ideal.

Edit: I think a cool feature related to this would be generating a visual 'map' of the scenario (like Huginn currently does for agents) This would be generated just from the raw scenario file itself.

cantino commented 10 years ago

I'm definitely interested in this. I think a site that allows users to post use-cases, scenario requests, and actual scenarios would be cool. What are some example sites (directories, forums, etc.) that do this well?

(I'm traveling right now, may be slow to reply.)

virtadpt commented 10 years ago

I think this is a good idea as well. It would also lend itself to certain "let's do this" use cases, such as setting up a sequence of agents to monitor Twitter for specific combinations of keywords (let's say), or setting up a sequence of agents to monitor a particularly tricky service (like some market analysis sites). I would have loved being able to distribute my "Fort Hood shooting" watcher as a single file with functionality like this.

cantino commented 10 years ago

Do you guys have any examples of directory sites that have a good look and feel and allow easy discussion and upvoting of content? Ideally something open-source that we could modify?

Here are the things that I think we should add to Scenarios:

The directory / sharing system should have

What is the simplest thing we could build?

snicker commented 10 years ago

EasyUO has what they call a "public script library" which is functionally pretty close to what we would want. Not something that we could use, as it's written in PHP and directly (i'll say parasitically) connected to phpBB.

The library is administered by forum administrators. Anyone with a forum account can post a thread with a script, but a library admin has to add it to the directory, picking a category and filling it appropriate metadata (most of which is scraped from the forum post).

At that point, the directory entry points to the forum thread which has discussion, downloads, etc. The library functionality allows for voting and browsing based on category. Something similarly simple could work, though we'd probably skip the need to moderate all submissions and allow users to police or rate/upvote the community.

accounts seem necessary but the signup process should probably as simple as possible. IE type in a username and you're good to post something... similar to hacker news? email can be optionally added later

0xdevalias commented 10 years ago

I think accounts are a must, and with omniauth/etc you can have a user/pass, twitter, Facebook, GitHub, etc auth system up super quick/painlessly.

cantino commented 10 years ago

Thanks for the example @snicker. This whole system wouldn't be that hard to build, but I don't know if I have the time right now to bite it off. I'm hoping someone will volunteer :wink:

virtadpt commented 10 years ago

I like the idea of a site where users can sign up and post their scenarios. It builds community, which is never bad for an open source project, and it helps make projects popular (and thus more widely used). It also makes it more likely that people will look at scenarios and submit requests and fixes to them. It also makes it less likely that malicious scenarios (DoS attacks, for example) will be submitted.

On the other hand, being able to import a scenario from a secret gist would be handy for agile deployment of agents. Sometimes quick-and-dirty isn't a bad thing if you trust the person who posted it.

I'd also like to second the request for being able to pull scenarios from Github repositories. I've been thinking of setting up a repo for my scenarios, and it would be handy to not only pull scenarios from repositories, but also push scenarios into repositories from inside of Huginn. Sort of a "here's my default agent network" in much the same way that some people check the config files from their home directories into repos.

zachlatta commented 9 years ago

I really like this idea :thumbsup:

lexoyo commented 9 years ago

Hi We could use github API to populate a website with issues or gists? Github has comments, labels and people can fork gists. We could use the number of :+1: to determine a note

lexoyo commented 9 years ago

As an example, these two lists (image and text lists) come from these github issues with a given label: templates and widgets

virtadpt commented 9 years ago

How likely would it be that people would contribute to a huginn-scenarios/ repository?

cantino commented 9 years ago

I certainly would.

lexoyo commented 9 years ago

I would contribute a webhook to trigger twitter alert + emails + feed a status page

nerdbaggy commented 9 years ago

Any update on this? I have some code that I have used for a previous project that would help a lot with this.

cantino commented 9 years ago

We need someone to spearhead the effort. It would be a significant contribution to Huginn!

nerdbaggy commented 9 years ago

I can definitely spearhead it! Is the draft specification still relevant from what you guys are looking for? Commit c7cd070

cantino commented 9 years ago

That'd be great @nerdbaggy! At this point, I think we should start as simple as possible. We already have Scenarios in Huginn, which are exportable as JSON structures. Here is a possible roadmap:

nerdbaggy commented 9 years ago

Got it! Will start working on it!

Ishfal commented 9 years ago

Whenever this goes up, I have a few scenarios of possible general utility to contribute:

In the meantime, I'm happy to provide to others directly, as well.

TildeWill commented 8 years ago

Omniscope (https://huginn.omniscope.io/) is willing to host the directory on the community's behalf. I'm thinking about something akin to rubygems.org where people can publish their own scenarios. Maybe an MVP is:

I've made a repo at https://github.com/omniscopeio/communnin. Looking for collaborators and pull requests.

cantino commented 8 years ago

That would be fantastic! I'm definitely happy to be involved, and would be thrilled if you wanted to lead the effort.

virtadpt commented 8 years ago

Feel free to look around in here and copy in any you like. I use them in examples in the longform series I've been publishing.

https://github.com/virtadpt/exocortex-agents

TildeWill commented 8 years ago

We're looking for a good name for the scenario directory site. I opened an issue here: https://github.com/omniscopeio/flight-plans/issues/1 please add your suggestions and I'll update the list at the top of the thread.

bradyemerson commented 2 years ago

Has there been any change on this in the last 6 years? Looks like communnin repo is dead. Was thinking of putting something light weight together with Vue + Firebase, but don't want to repeat work if something is already in flight.

virtadpt commented 2 years ago

@bradyemerson http://huginnio.herokuapp.com/scenarios