📄️ Add page
Add a page to CommandBar and returns a promise. This is especially useful for ingesting a sitemap and creating pages for each valid URL in a site.
Actions users can take via Copilot or Spotlight. Commands can be defined in two ways: (1) using the CommandBar dashboard, or (2) using the SDK functions defined in this section. We recommend using the dashboard when possible, as it gives you access to more features and allows non-technical editors to edit actions. If you use a router, make sure to connect your router to CommandBar via .addRouter.
Add a page to CommandBar and returns a promise. This is especially useful for ingesting a sitemap and creating pages for each valid URL in a site.