In most cases, you will use the console to manage pages. In advanced scenarios, you may wish to use the API to manage pages. This guide describes how to create, list, and delete pages using the API.
Create page
To create a page for your agent,
call the create
method on the Page
type.
Select a protocol and version for the Page reference:
Protocol | V3 | V3beta1 |
---|---|---|
REST | Page resource | Page resource |
RPC | Page interface | Page interface |
C++ | PagesClient | Not available |
C# | PagesClient | Not available |
Go | PagesClient | Not available |
Java | PagesClient | PagesClient |
Node.js | PagesClient | PagesClient |
PHP | Not available | Not available |
Python | PagesClient | PagesClient |
Ruby | Not available | Not available |
Java
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Node.js
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
List pages
To list the pages for your agent,
call the list
method on the Page
type.
Select a protocol and version for the Page reference:
Protocol | V3 | V3beta1 |
---|---|---|
REST | Page resource | Page resource |
RPC | Page interface | Page interface |
C++ | PagesClient | Not available |
C# | PagesClient | Not available |
Go | PagesClient | Not available |
Java | PagesClient | PagesClient |
Node.js | PagesClient | PagesClient |
PHP | Not available | Not available |
Python | PagesClient | PagesClient |
Ruby | Not available | Not available |
Java
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Node.js
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Delete pages
To delete a page for your agent,
call the delete
method on the Page
type.
Select a protocol and version for the Page reference:
Protocol | V3 | V3beta1 |
---|---|---|
REST | Page resource | Page resource |
RPC | Page interface | Page interface |
C++ | PagesClient | Not available |
C# | PagesClient | Not available |
Go | PagesClient | Not available |
Java | PagesClient | PagesClient |
Node.js | PagesClient | PagesClient |
PHP | Not available | Not available |
Python | PagesClient | PagesClient |
Ruby | Not available | Not available |
Java
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Node.js
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
To authenticate to Dialogflow, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.