Protocol / Manifest and Intent Links
Manifest and URL structure
The manifest is the description a website publishes for assistants. An Intent Link is one concrete URL built from an action in that description.
Finding the manifest
Start from the website's origin and read /.well-known/lap.json. The actions field lists the actions. When a parameter needs a code or value the website manages, the assistant takes it from the declared data source.
Reading an action declaration
The excerpt below comes from a sample manifest. id names the action, kind says how it runs, and url_template gives the path and parameter names. Templates use RFC 6570 syntax.
{
"id": "post.draft",
"kind": "propose",
"risk": "R1",
"url_template": "https://gw.example/draft{?to}"
}Building an Intent Link
In this example, the to parameter takes a destination code from the data source the website publishes, and the draft text goes in the text fragment. Parameter names are chosen by the website; the assistant must use exactly the names and values the manifest declares.
https://gw.example/draft?to=fb_page#text=Notes+from+our+weekend+tripWhen the URL is opened, the website checks the destination code and shows a preview. How a website interprets and checks its own data is up to the website; the protocol does not prescribe it.
Query and fragment
The query after ? is sent to the server. Personal data may only be prefilled through declared fragment keys, and only with the user's consent. The browser reads the part after #, fills editable fields and then removes the fragment from the address bar. Copies of the link in a chat history can still contain that data.
Passwords, OTP codes, card numbers and API keys must never appear anywhere in an Intent Link.