fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.5k stars 1.08k forks source link

Create a skill with an API from an online service using the tutorial #126

Closed mariobehling closed 5 years ago

mariobehling commented 7 years ago

Create a skill with an API from an online service using the tutorial at https://github.com/fossasia/susi_server/blob/development/docs/skills/susi_skill_development_tutorial.md

The skill should make use of an API of an online service.

Add the skill first to http://dream.susi.ai and share it as a comment.

There is also information from this workshop available here https://www.youtube.com/watch?v=7U__K8yy1iY&t=996s

DravitLochan commented 7 years ago

http://dream.susi.ai/p/currency it converts a single unit of a currency to USD. (working on a way to convert to any other currency as well)

http://dream.susi.ai/p/joke tells you random jokes :)

Started working on a skill which tells about sunrise and sunset based on the location. Also, tells the current time of different places and allows conversion from one time domain to another.

AliAyub007 commented 7 years ago

BBC NEWS Api http://dream.susi.ai/p/news This will return recent articles and news as a description.

Weather Enhancement http://dream.susi.ai/p/weather This will tell humidity percentage and will tell about next day's forecast.

It has more things which can be implemented but as we can only receive one answer in console and that is issue #132

@mariobehling Kindly share your thoughts on these.

chashmeetsingh commented 7 years ago

Random Gif API (Giphy.com)

http://dream.susi.ai/p/random_giphy Returns a random GIF

http://dream.susi.ai/p/ceo <- Name of the CEO of a company http://dream.susi.ai/p/president <- President of a country http://dream.susi.ai/p/capital <- Capital of a country

uday96 commented 7 years ago

Language translator http://dream.susi.ai/p/languageskills Currently converts to french and german from english and also gives the meaning of a word in english. (working on a way to extend translation from any language to another).

Cooking recipies http://dream.susi.ai/p/cooking Gives the recipie to cook a particular dish.

TV Show ratings http://dream.susi.ai/p/tvshows

Random names http://dream.susi.ai/p/randomnames

Concerts and cyclecounters in iceland http://dream.susi.ai/p/iceland

Cars Info http://dream.susi.ai/p/carsinfo

Mixcloud shows and users http://dream.susi.ai/p/mixcloud

Random Image http://dream.susi.ai/p/randomimage - returns random image

Query results from DuckDuckgo http://dream.susi.ai/p/duckduckgo

dynamitechetan commented 7 years ago

Throw a dice http://dream.susi.ai/p/dice Returns a random number from 1 to 6

DravitLochan commented 7 years ago

@dynamitechetan http://deckofcardsapi.com/ have a look at this API. This might enhance the skill you are working on :)

madhavrathi commented 7 years ago

Daily horoscopes and flip a coin http://dream.susi.ai/p/madhavrathi

madhavrathi commented 7 years ago

has anyone figured out how to access root elements of json(what to pass within path) ?

rishiraj824 commented 7 years ago

Tells you about a pokemon http://dream.susi.ai/p/pokemon

Get a movie suggestion about a related topic http://dream.susi.ai/p/movies

Here's a consolidated list of APIs which one can use to create skills. Most of them do not require Auth or any sort of API Keys. https://github.com/toddmotto/public-apis

dynamitechetan commented 7 years ago

Shows gif for a given query http://dream.susi.ai/p/gif

Place name from Pincode http://dream.susi.ai/p/pincode

Fluepke commented 7 years ago

Retrieves the hottest image from imgur http://dream.susi.ai/p/imgur

AliAyub007 commented 7 years ago

Tells us about population of any country http://dream.susi.ai/p/population

madhavrathi commented 7 years ago

Displays motivational quotes daily http://dream.susi.ai/p/quote Info about the creators of susi(with some witty replies) http://dream.susi.ai/p/creator

Fluepke commented 7 years ago

Display the current position of the international space station http://dream.susi.ai/p/iss

DravitLochan commented 7 years ago

football/socer details with a little bit of advanced options available (like looping), this api can be a bliss! http://dream.susi.ai/p/football

Fluepke commented 7 years ago

Sunrise http://dream.susi.ai/p/sunrise

Unfortunately, we cannot nest APIs. This would be useful, to first query a name to GPS converter and then query the sunrise API.

poonai commented 7 years ago

University http://dream.susi.ai/p/university

saurabhjn76 commented 7 years ago

Day in History Events, Births, Deaths on a particular date http://dream.susi.ai/p/history Quotes gives an inspirational quote http://dream.susi.ai/p/quotes NumberFacts tells an interesting fact about a number http://dream.susi.ai/p/numbertriva Movies Details about a movie- #134 persists http://dream.susi.ai/p/movie

Laughing-Boy commented 7 years ago

Price of stock: http://dream.susi.ai/p/stockdata Distance : http://dream.susi.ai/p/distance_between_cities Time : http://dream.susi.ai/p/time_to_travel_between_cities Your IP : http://dream.susi.ai/p/ip

madhavrathi commented 7 years ago

Tells Director of a particular movie(Finally solved accessing root elements, thanks to @Orbiter ) http://dream.susi.ai/p/director

chiragw15 commented 7 years ago

@jyoth1raditya The IP skill will not work because the user doesn't directly call the API and thus the response will always be server IP. I tested the IP skill on different devices and found same IP address i.e 144.76.32.15 .

DravitLochan commented 7 years ago

http://dream.susi.ai/p/movie_n_shows

plot, imdb rating and genre. (quick extension of @madhavrathi 's skill)

get time on the basis of name of the country http://dream.susi.ai/p/time

chiragw15 commented 7 years ago
  1. Using sentiment analysis to determine whether entered text is positive or negative. http://dream.susi.ai/p/sentiment

  2. Determine gender of a person from his first name http://dream.susi.ai/p/gender

  3. Using github api to find information about person from his github username http://dream.susi.ai/p/github

  4. Calculating differentiation and integration of an expression http://dream.susi.ai/p/advanced_math

Manveer695 commented 7 years ago

To know the full form and country code of a space agency. http://dream.asksusi.com/p/space

To show some random text for a website or a mockup (termed as hipster ipsum). http://dream.asksusi.com/p/hipsteripsum

AliAyub007 commented 7 years ago

Tell acronyms http://dream.susi.ai/p/acronyms

Tells about height of different buildings or places http://dream.susi.ai/p/height

Tells Calling codes of countries http://dream.susi.ai/p/callingcode

Tells about region of country whether it's Asia, africa or any other http://dream.susi.ai/p/region

Tells us about area of country http://dream.susi.ai/p/area

Tells us about Time Zone http://dream.susi.ai/p/timezone

Tells us about currency of countries http://dream.susi.ai/p/countrycurrency

Generates random number http://dream.susi.ai/p/randomnumber

DravitLochan commented 7 years ago

working on meme generator and qr code generator. once finished, will attach the dream etherpad link as well!

saurabhjn76 commented 7 years ago

Draw a card http://dream.susi.ai/p/deckofcards

dynamitechetan commented 7 years ago

Detects language of a sentence passed http://dream.susi.ai/p/detectlang

DravitLochan commented 7 years ago

@sch00lb0y this works only for the first name of the university. for instance, if you are looking for Birla Institute of Technology and Science (i.e. bits) you must pass only 'birla' to get a valid response.

Manveer695 commented 7 years ago

To answer questions like "Who is amitabh bachchan" or "who is taylor swift", using the Api of susi itself. http://dream.asksusi.com/p/whotowhat

To show the name of the latest phone by a company http://dream.asksusi.com/p/latestphone

amitiwary999 commented 7 years ago

Find capital of any country http://dream.susi.ai/p/countrycapital

dynamitechetan commented 7 years ago

Wikipedia summary http://dream.susi.ai/p/wiki

Asks user a random trivia question http://dream.susi.ai/p/randomquestion

amitiwary999 commented 7 years ago

Some random chat http://dream.susi.ai/p/simplechating

saurabhjn76 commented 7 years ago

Calendar http://dream.susi.ai/p/calendar

isuruAb commented 7 years ago

check the book name - build by google book api http://dream.susi.ai/p/booknames

AliAyub007 commented 7 years ago

Social Shares Tells about social shares of specific platforms e.g social shares of 9gag http://dream.asksusi.com/p/social

saurabhjn76 commented 7 years ago

Question and answer http://dream.susi.ai/p/qna

Orbiter commented 7 years ago

ATTENTION! Thank you very much for creating so many dreams. Now we have a place to put the dreams permanently into a storage place and move it to production automatically.

in https://github.com/fossasia/susi_skill_data is the new storage place. Please read the readme carefully, find a place in the data structure and put your data there using a pull request. Use a peer reviewer to discuss the right storage location and to verify that your skill does work.