How to Plan Ecommerce Promotions with Copilot
Ecommerce promotions in your IDE with Copilot and ToolRouter. Holiday sales data for developers.
ToolPublic HolidaysCopilot 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
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Public Holidays tool:
- In Copilot Chat: "Get US holidays for 2026 using public-holidays"
- Copilot returns the holiday data
- Ask: "Generate a JSON promotional calendar with these holidays for our ecommerce platform"
- 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