Skip to main content
1

Create a Custom Strategy

Create a class implements the Strategy interface. Doing so by extending the Extractor class is a good starting point for custom strategies as it contains some useful methods that you probably don’t want to implement yourself.
2

Implement the Strategy

Implement your strategy in the run() method, which takes the artifacts as an array.The array that the run method returns is used as the final output data.
3

Register the Strategy

Call Magic::registerStrategy('my-custom-strategy', MyCustomStrategy::class) in your boot() method in the service provider.
Now your custom strategy is usable in the Data Wizard settings UI.


Next Steps

Learn how to extract some data

Step by step guide to extract data from documents using Data Wizard.

Extractors

Learn how to define and configure data extraction tasks.

Strategies

Understand different data processing strategies.

LLM Provider Configuration

Set up your Large Language Model API keys.

Integration

Embed Data Wizard into other applications using iFrames or APIs.