Skip to content

How to access user entity values submitted by send_user_entities_example.py on api.ai platform? #44

@clungzta

Description

@clungzta

Hello,

I am trying to access set some User Entities for my session using the python-client. Then use ai.api insert the Value of the User Entity in the text response.

I have successfully ran the user entity sample code send_user_entities_example.py.

However I am unsure of how to simply access the submitted entity value from api.ai to insert it into my text response.

All documentation I have found regarding the use of ai.api UserEntites has been quite vague. Code comments refer to https://api.ai/docs/reference/agent/userentities which states:

A good scenario could be when you have a playlist entity that has generic playlist. As playlists are user-specific, playlist entity could be defined in a request or for a given session.

This is the only source of information I could find online about UserEntites, it does not explain how to access user entity values from the api.ai platform agent.

Further instruction/documentation about "how to access the user entity values submitted by send_user_entities_example.py on the api.ai platform agent" would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions