An Euro-Office plugin that automatically fills document form fields using AI-powered field mapping and third-party data integration.
- AI Powered Field Mapping: Automatically matches form fields with data keys using AI
- Third-Party Integration: Connects to external backend services to retrieve data from
- Code Rotation Security: Implements secure code rotation mechanism for API calls
- Flexible Data Handling: Supports flat, nested, and array data structures
- User Confirmation: Review and modify field mappings before applying
- Euro-Office Document Server 9.2.0 or higher
- AI features enabled in Euro-Office
- Backend service implementing the callback API (see Third-Party Integration Guide)
- Configure the plugin in your Euro-Office Document Server configuration:
const config = {
editorConfig: {
plugins: {
autostart: ['asc.{6A95DA5C-857E-4C26-B00B-34876F1EEAD8}'],
options: {
'asc.{6A95DA5C-857E-4C26-B00B-34876F1EEAD8}': {
code: 'your_initial_security_code',
callback: 'https://your-backend.com/<path_to_data_endpoint>'
}
},
pluginsData: [
'https://your-backend.com/<path_to_plugin>/config.json'
],
url: 'https://your-backend.com/<path_to_plugin>'
}
}
};- Open a PDF form with form fields in Euro-Office
- Click the AI Auto Fill plugin icon in the left panel
- Click "Autofill" to automatically populate form fields
- Clone this repository
- Install build tools:
make install-tools- Build the plugin:
make buildThe built plugin will be in the build/ directory.
- Open a Document: Open a PDF form with form fields in Euro-Office
- Launch Plugin: Click the AI Auto Fill icon in the plugins panel
- Start Autofill: Click the "Autofill" button to begin the process
- AI Processing: The plugin:
- Detects all form fields in the document
- Fetches data from your configured backend
- Uses AI to intelligently map fields to data keys
- Review & Confirm: Review the suggested field mappings and values
- Apply: Click "Apply" to populate the form fields
The plugin presents an interactive interface where you can:
- Select/Deselect Fields: Choose which fields to fill using checkboxes
- Modify Values: Edit or select different values for each field
- Review Suggestions: See AI-suggested mappings between form fields and data
See the Third-Party Integration Guide for complete API documentation.
{
"firstName": "John",
"lastName": "Doe"
}{
"user": {
"name": {
"first": "John",
"last": "Doe"
}
}
}Extracted as: user.name.first, user.name.last
{
"employees": [
{"name": "John", "role": "Manager"},
{"name": "Jane", "role": "Developer"}
]
}Extracted as: employees.name, employees.role
The plugin intelligently matches Pipedrive data with the fields in your Euro-Office PDF form without sending sensitive user data to the AI.
- Data request: The plugin requests available data from Pipedrive. It can retrieve information related to customers, sellers, deals, organizations, and products.
- Field analysis: It then retrieves the key data (or tag) for all fields within the PDF form.
- AI-powered matching: The plugin sends only the data keys and field keys to the AI model. The AI then determines the best matches between Pipedrive data points and your form fields.
- Recommendations: Finally, the plugin displays the AI's recommendations for you to review and apply.
1. Opening a PDF form
To begin, open a PDF form within Pipedrive from the Euro-Office Documents section.
Please note: It's important that a PDF form must be created in Euro-Office.
2. Initiating autofill
When the editor opens, the AI Auto Fill plugin will appear automatically on the side panel.
To proceed with populating the form, click the Autofill button. If you prefer to fill the form manually, simply click Cancel or close the plugin panel.
3. Reviewing suggestions
After clicking Autofill, a new window will open, displaying each form field alongside the corresponding value suggested by the AI.
- If the AI identifies multiple potential values for a single field, you can choose the correct one from a drop-down list.
- To skip filling a specific field, uncheck the checkbox next to it.
- To locate a field within the document, click the Open file location button next to it.
4. Applying the data
Once you have reviewed the suggestions, click the Apply button. A confirmation prompt will appear, warning you that the form fields will be filled automatically. If you confirm, the selected values will be inserted into the form.
5. Post-fill options
After the process completes, the plugin will display a success message.
The Cancel autofill button will become active, allowing you to undo the changes and revert the form to its previous state.
If you have closed the plugin at any point, you can always reopen it from the Plugins tab in the top toolbar of the editor.