简体   繁体   中英

How can I create or update type entries via REST API request?

I have an Action built with AOG + Dialogflow that needs to be migrated to the new Actions Builder. But I'm struggling to find a REST API endpoint where I could create or update the types entries as we do with the Dialogflow entity entries. I didn't find the endpoint on Actions Builder docs, so I wondered if it is even possible.

Actions Builder REST API docs: https://developers.google.com/assistant/actions/api/reference/rest

Dialogflow Rest API docs: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.agent.entityTypes.entities/batchUpdate

Thanks

If you are updating the Entities for an entire project, you need to do that along with updating the project. See the projects.draft.write API endpoint for more details.

One alternative, however, is to update Entities for a particular session. Usually this is done in conjunction with selection prompts but it can be done in general. With this, your webhook would set the typeOverrides field in the session field of the response.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM