How to Plan Ecommerce Promotions with Copilot

Ecommerce promotions in your IDE with Copilot and ToolRouter. Holiday sales data for developers.

Tool
Public Holidays icon
Public Holidays

Copilot fetches holiday data and generates promotional campaign configurations for your ecommerce platform. Create JSON schemas for banner scheduling, discount rule configs tied to holiday dates, and automated email trigger logic -- building holiday promotional infrastructure directly in your application codebase.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Public Holidays tool:

  1. In Copilot Chat: "Get US holidays for 2026 using public-holidays"
  2. Copilot returns the holiday data
  3. Ask: "Generate a JSON promotional calendar with these holidays for our ecommerce platform"
  4. Integrate the promotional schedule into your storefront

Example Prompt

Try this with Copilot using the Public Holidays tool
Fetch US holidays for 2026 and generate a JSON config for our promotional banner system. Include campaign start and end dates for each holiday.

Tips

  • Automate promotional banner scheduling using holiday date data
  • Generate discount rule configurations tied to holiday dates
  • Use the data to build automated email campaign triggers