- Voice User Interface Projects
- Henry Lee
- 191字
- 2021-07-23 17:17:21
Using JSON to create entities
In the previous section, only two presidents were added to the president-number entity. For the FaqChatBot, you would need to add 45 entries, and adding one by one using the Dialogflow graphical user interface would be time consuming. Dialogflow provides an easier mechanism, where JSON content can be copied and pasted into the textbox. In the president-number intent, change from editor mode to raw mode.
The following screenshot shows editor mode in the entity editor:
The following screenshot shows raw mode in the entity editor:

Once in raw mode, copy and paste the JSON, similar to the following format. I have not included a JSON that contains 45 entries, but you can find a JSON that contains all 45 President entries on my GitHub.
The following code shows the JSON data of the president-number entity:
[
{
"value": "George Washington",
"synonyms": ["first president","1st president"]
},
{
"value": "John Adams",
"synonyms": ["second president","2nd president"]
},
{
"value": "Thomas Jefferson",
"synonyms": ["third president","3rd president"]
},
{
"value": "James Madison",
"synonyms": ["fourth president","4th president"]
}
]
- Mastering Ext JS(Second Edition)
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Learning Real-time Processing with Spark Streaming
- Interactive Data Visualization with Python
- Python機器學習:手把手教你掌握150個精彩案例(微課視頻版)
- INSTANT Django 1.5 Application Development Starter
- Learning Data Mining with R
- Learning AngularJS for .NET Developers
- Procedural Content Generation for C++ Game Development
- 現代CPU性能分析與優化
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- Web開發新體驗
- SQL Server 2014 Development Essentials
- RESTful Web API Design with Node.js
- Android 5從入門到精通