A Power Platform Toolbox tool that simplifies testing and integrating Custom APIs from Dataverse into Microsoft Copilot Studio.
The Copilot Studio Action Mapper helps you bridge the gap between Dataverse Custom APIs and Microsoft Copilot Studio by:
- Browsing Custom APIs: Displays all Custom APIs in your Dataverse environment in an easy-to-navigate interface
- Testing Actions: Executes Custom APIs with sample inputs and shows real-time JSON responses
- Generating OpenAPI Schemas: Auto-generates OpenAPI 2.0 (Swagger) specifications that Copilot Studio requires for REST API actions
- Validating Responses: Ensures your API responses are properly formatted for AI consumption
- Exporting Documentation: Creates comprehensive JSON documentation for team collaboration
- No Manual Schema Writing: Automatically generates the exact OpenAPI 2.0 format that Copilot Studio expects
- Instant Testing: Test your Custom APIs without writing code or using Postman
- One-Click Export: Copy schemas directly to clipboard for immediate use in Copilot Studio
- Correct Format Guaranteed: Generates valid OpenAPI 2.0 Swagger specifications every time
- Type Mapping: Automatically maps Dataverse data types to Swagger types
- Validation Before Integration: Test APIs before connecting them to your copilots
- Visual API Browser: See all your Custom APIs at a glance
- Documentation Export: Share API specifications with your team
- Clear Parameter Display: View input requirements and output properties before testing
For more information about using Custom APIs with Copilot Studio:
- Create REST API Copilot Connectors in Copilot Studio - Official Microsoft documentation on REST API integration
- Custom API Documentation - Learn how to create and use Custom APIs in Dataverse
- Copilot Studio Actions - Understanding actions in Copilot Studio
- Open Power Platform Toolbox
- Connect to your Dataverse environment
- Launch "Copilot Studio Action Mapper"
- All Custom APIs will load automatically in the left sidebar
- Use the search box to filter by name or description
- π΅ Function APIs are marked with a blue icon
- β‘ Action APIs are marked with a lightning icon
- Select an API from the list
- Review the parameters in the "Input Parameters" section
- Enter test values in the "Test Action" section
- Click "Execute Action" to run the test
- View the response in JSON format
- Select a Custom API
- Click "Generate Copilot Schema" button
- Copy the generated schema
- Use it in Copilot Studio when configuring actions
- Select a Custom API
- Click "Export Documentation" button
- Save the JSON file with complete API documentation
- Test Custom APIs before integrating them into Copilot Studio
- Generate schemas to streamline Copilot configuration
- Validate responses to ensure AI-friendly formats
- Document actions for team collaboration
- Debug Custom APIs by testing with different inputs
- Verify parameter types and requirements
- Understand API structure through visual representation
- Share API specifications with stakeholders
- Actions: Standard actions that modify data or trigger processes
- Functions: Read-only functions that return data
- Bound APIs: APIs bound to specific entities
- Unbound APIs: Global APIs not tied to entities
The tool supports all Dataverse parameter types:
- Boolean
- DateTime
- Decimal
- Entity
- EntityCollection
- EntityReference
- Float
- Integer
- Money
- Picklist
- String
- StringArray
- Guid
The tool generates OpenAPI 2.0 (Swagger) specifications that Copilot Studio requires for REST API actions:
{
"swagger": "2.0",
"info": {
"title": "API Display Name",
"description": "API Description",
"version": "1.0.0"
},
"paths": {
"/api_name": {
"post": {
"operationId": "api_uniquename",
"summary": "API Display Name",
"parameters": [...],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "object",
"properties": {...}
}
}
}
}
}
},
"securityDefinitions": {
"oauth2": {...}
}
}This format is directly compatible with Copilot Studio's REST API connector requirements.
copilot-studio-action-mapper/
βββ src/
β βββ app.ts # Main TypeScript application
βββ index.html # UI layout
βββ styles.css # Styling
βββ package.json # Package configuration
βββ tsconfig.json # TypeScript configuration
βββ README.md # Documentation
- TypeScript: Type-safe development
- PPTB APIs:
toolboxAPI: Connection, notifications, clipboarddataverseAPI: FetchXML, action execution
- Modern CSS: Responsive, accessible design
- Bound API Testing: Requires a record ID (currently shows TODO_RECORD_ID)
- Complex Types: Entity and EntityCollection inputs need JSON format
- Authentication: Uses the active PPTB connection
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT License - See LICENSE file for details
- Built for Power Platform Toolbox
- Inspired by the need for better Copilot Studio integration tools
- Thanks to the XrmToolBox community for inspiration
For issues, questions, or suggestions:
- Open an issue on GitHub
- Join the PPTB Discord
Made with β€οΈ for the Power Platform community