📄️ Add page
Add a page to Command AI 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 Command AI 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 Command AI via .addRouter.
Add a page to Command AI and returns a promise. This is especially useful for ingesting a sitemap and creating pages for each valid URL in a site.