{"id":17974895,"url":"https://github.com/wingjay/abot","last_synced_at":"2025-04-03T23:43:37.419Z","repository":{"id":88655306,"uuid":"70815902","full_name":"wingjay/ABot","owner":"wingjay","description":"An AI Bot who can understand natural language, execute your commands. Based on API.AI from Google.","archived":false,"fork":false,"pushed_at":"2017-06-13T03:46:15.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T11:30:41.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wingjay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-13T14:36:53.000Z","updated_at":"2018-03-06T15:18:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e7e1588-eb45-4869-bb80-87ca9ec7bbd5","html_url":"https://github.com/wingjay/ABot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingjay%2FABot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingjay%2FABot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingjay%2FABot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingjay%2FABot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingjay","download_url":"https://codeload.github.com/wingjay/ABot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097974,"owners_count":20883127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T17:16:28.035Z","updated_at":"2025-04-03T23:43:37.391Z","avatar_url":"https://github.com/wingjay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ABot\nAn AI Bot who can understand natural language, execute your commands. Based on API.AI from Google.\n\n\n# How to query\n- For Get request\n```\nGET https://api.api.ai/v1/query?v=20150910\u0026query=weather\u0026timezone=Europe/Paris\u0026lang=en\u0026contexts=weather\u0026contexts=europe\u0026latitude=37.459157\u0026longitude=-122.17926\u0026sessionId=1234567890\n\nHeaders:\nAuthorization: Bearer YOUR_ACCESS_TOKEN\n```\n\n- For Post request\n```\nPOST https://api.api.ai/v1/query?v=20150910\n\nHeaders:\nAuthorization: Bearer YOUR_ACCESS_TOKEN\nContent-Type: application/json; charset=utf-8\n\nPOST body:\n{\n    \"query\": [\n        \"and for tomorrow\"\n    ],\n    \"contexts\": [{\n        \"name\": \"weather\",\n        \"lifespan\": 4\n    }],\n    \"location\": {\n        \"latitude\": 37.459157,\n        \"longitude\": -122.17926\n    },\n    \"timezone\": \"America/New_York\",\n    \"lang\": \"en\",\n    \"sessionId\": \"1234567890\"\n}\n```\n\n# What happens after you query as above?\n1. Send a request like `https://api.api.ai/v1/query?xxx` with token in headers.\n2. Request will taken your natural language and go to API.AI server and find your agent based on your token.\n3. Your agent get user's raw request, it will recongnize user's background intent and transfer that into a json {'action': xxx, 'params': {} }\n4. Your agent will use its webhook api `https://wingjay-abot.herokuapp.com/webhook`, make a request to this webhook api, Just wingjay/abot repo.\n5. My ABot will process request from API.AI, handle its action and params, generate a result, return to agent\n6. API.AI agent take this result and return to user.\n\n\n# Deploy to:\nRemember to use `deploy` branch.\n[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n# Other\nMore info about Api.ai webhooks could be found here:\n[Api.ai Webhook](https://docs.api.ai/docs/webhook)\n\nProcfile tells Heroku how to run your application.\nLearn more: https://devcenter.heroku.com/articles/procfile","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingjay%2Fabot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingjay%2Fabot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingjay%2Fabot/lists"}