{"id":19156587,"url":"https://github.com/kkdai/luis","last_synced_at":"2025-08-24T04:13:50.858Z","repository":{"id":57488980,"uuid":"76025533","full_name":"kkdai/luis","owner":"kkdai","description":"Microsoft Luis.ai  API Golang package  ","archived":false,"fork":false,"pushed_at":"2021-02-10T11:23:21.000Z","size":1527,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T07:48:19.131Z","etag":null,"topics":["go","golang","intent","luis","luis-ai"],"latest_commit_sha":null,"homepage":"https://www.luis.ai","language":"Go","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/kkdai.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}},"created_at":"2016-12-09T10:22:56.000Z","updated_at":"2023-09-08T17:18:07.000Z","dependencies_parsed_at":"2022-08-29T09:10:16.269Z","dependency_job_id":null,"html_url":"https://github.com/kkdai/luis","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kkdai/luis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkdai%2Fluis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkdai%2Fluis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkdai%2Fluis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkdai%2Fluis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkdai","download_url":"https://codeload.github.com/kkdai/luis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkdai%2Fluis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271789926,"owners_count":24821474,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","golang","intent","luis","luis-ai"],"created_at":"2024-11-09T08:35:05.628Z","updated_at":"2025-08-24T04:13:50.838Z","avatar_url":"https://github.com/kkdai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"LUIS.ai for Golang\n======================\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/kkdai/luis/master/LICENSE)  [![GoDoc](https://godoc.org/github.com/kkdai/luis?status.svg)](https://godoc.org/github.com/kkdai/luis)  [![Build Status](https://travis-ci.org/kkdai/luis.svg)](https://travis-ci.org/kkdai/luis)\n![Go](https://github.com/kkdai/luis/workflows/Go/badge.svg) \n\n\n## Language Understanding Intelligent Service (LUIS)\n\nLUIS lets your app understand language\n\n- LUIS is in beta and free to use\n- Supported browsers: Internet Explorer 10/11, Chrome\n \nIn LUIS you can:\n\n- Create language understanding models.\n- Use pre-built, world-class models from Bing and Cortana.\n- Deploy your models to an HTTP endpoint.\n- Activate models on any device.\n \nHere is some suggestion and limitation you might want to check before add all you intent. [Chinese](https://ericyeh92094.gitbooks.io/a-simple-wechat-chatbot-generator/content/generator/%E8%87%AA%E7%84%B6%E8%AA%9E%E8%A8%80%E8%99%95%E7%90%86.html) \n \n## How to get APP_ID and APP_KEY\n\n### APP_KEY\n\nLogin and go to LUIS key page [https://www.luis.ai/home/keys](https://www.luis.ai/home/keys)\n\nYou can see the `API_KEY` in \"My Keys\".\n\n![](images/luis_api.png)\n\n### APP_ID\n\nCreate a new App (if you don't have one) and in the APP dashboard, you can get `APP_ID` from web URL. It might be `12341be8-8cfb-471c-b05a-636d58cd5678`\n\n![](images/APP_ID.png)\n\n### Version ID (Important)\n\nBefore use this SDK, you must run follow step in luis.ai dashboard.\n\n- Create new app\n- Add few intent\n- Add `Endpoint Key` (You could use your API key)\n- Publish your model.\n\nInstallation\n---------------\n\n```\ngo get github.com/kkdai/luis\n```\n\nHow to use it\n---------------\n\n```go\nvar API_KEY string\nvar APPID string\n\nfunc main() {\n\tvar API_KEY string\n\tvar APPID string\n\n\tAPPID = os.Getenv(\"APP_ID\")\n\tAPI_KEY = os.Getenv(\"SUB_KEY\")\n\n\tif API_KEY == \"\" {\n\t\tfmt.Println(\"Please export your key to environment first, `export SUB_KEY=12234 \u0026\u0026 export APP_ID=5678`\")\n\t}\n\tif API_KEY == \"\" {\n\t\treturn\n\t}\n\n\te := NewLuis(API_KEY, APPID)\n\n\tres, err := e.IntelList()\n\n\tif err != nil {\n\t\tlog.Error(\"Error happen on :\", err.Err)\n\t}\n\tfmt.Println(\"Got response:\", string(res))\n\tresult := NewIntentListResponse(res)\n\tfmt.Println(\"Luis Intent Ret\", result)\n\n\t//Add utterances\n\tex := ExampleJson{ExampleText: \"test\", SelectedIntentName: \"test2\"}\n\tres, err = e.AddLabel(ex)\n\n\t//Train it\n\tres, err = e.Train()\n\tif err != nil {\n\t\tlog.Error(\"Error happen on :\", err.Err)\n\t}\n\n\t//Predict it, once you have train your models.\n\tres, err = e.Predict(\"test string\")\n\n\tif err != nil {\n\t\tlog.Error(\"Error happen on :\", err.Err)\n\t}\n\tfmt.Println(\"Got response:\", string(res))\n\tfmt.Println(\"Get the best predict result:\", GetBestScoreIntent(NewPredictResponse(res)))\n}\n```\n\nImplemented APIs\n---------------\n\n- actionChannels\n- intents\n- predict\n- train\n- example\n- Versions\n- Publish\n\n\nUnimplement APIs (Yet)\n---------------\n\nNeed your help to send your PR.\n\nContribute\n---------------\n\nPlease open up an issue on GitHub before you put a lot efforts on pull request.\nThe code submitting to PR must be filtered with `gofmt`\n\nLicense\n---------------\n\nThis package is licensed under MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkdai%2Fluis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkdai%2Fluis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkdai%2Fluis/lists"}