Skip to main content

Android: Filling PDF forms with AI

Overview​

ONLYOFFICE Documents for Android lets you fill PDF forms using AI. You can generate suggestions for the form fields, use your contact details, or tell AI how to fill the form in your own words.

To use these features, connect an AI model first. See Android: Enabling AI in ONLYOFFICE Documents.

To switch to AI mode, open the PDF form you want to fill and tap the AI icon AI icon in the top toolbar. The toolbar then shows the following icons:

  • AI Auto Fill AI Auto Fill - opens the AI Auto Fill panel.
  • AI Chat AI Chat - opens the chat with the AI model.
  • Settings Settings - opens the AI Models settings.

The quick actions and the Ask me anything field appear below the form. To leave AI mode, tap the Checkmark icon icon in the top-left corner.

AI mode in a PDF form

Using AI Auto Fill​

Tap the AI Auto Fill AI Auto Fill icon. The AI Auto Fill panel lists the fields of the form, each with its value, and provides several ways to populate them.

If no AI model is connected, the panel shows AI is not configured. Tap Set Up to add a model.

AI Auto Fill panel

Generating suggestions​

Tap Generate suggestions Generate suggestions to let AI suggest values for the fields. AI takes the field names, types, and available options into account.

For example, if the form contains fields for a student's name, grade level, or school, AI suggests sample answers for them. For multiple-choice questions, it selects one of the available options.

Once the suggestions are generated, you can review the proposed values in the panel. To get new suggestions, tap Regenerate suggestions. If you have changed some values manually, choose Keep my edits to keep your changes or Replace everything to replace them with the new suggestions.

Using your contact details​

Tap Use my contact details Use my contact details to fill the form with information from a contact card on your device, such as your name, phone number, email, address, or company.

When prompted, allow ONLYOFFICE Documents to access your contacts, then select your contact card. The app puts the contact details into the matching form fields.

Selecting fields​

The AI Auto Fill panel lets you choose which fields to populate:

  • Tap Select all to select every field.
  • Tap the selection circle next to a field to include or exclude it.
  • For multiple-choice fields, check the suggested option and select another one if needed.

You can also change any value manually before applying it.

Applying the suggestions​

Once you have reviewed the values:

  1. Make sure all the fields you want to update are selected.
  2. Uncheck the fields you want to leave unchanged.
  3. Tap the Checkmark icon Apply icon in the top-right corner of the AI Auto Fill panel.

The selected values are applied to the corresponding fields in your PDF form.

If some selected fields are required but empty, or contain a value that is not allowed, the app shows the Check the values message. Tap Review to correct them, or Skip and Apply to apply the other values.

Using quick actions​

In AI mode, three quick actions are shown below the form:

  • Quick Fill - fills the form with your contact details. On first use, select your contact card. Fields that do not match your contact details are left unchanged.
  • Check fields - finds the first required field that is still empty and shows how many required fields are filled. This action does not change the form.
  • Clear form - clears all the form fields.

Quick actions

Filling forms using custom instructions​

You can also tell AI how to fill the form in your own words:

  1. Tap the Ask me anything field below the form.
  2. Enter your instructions, including any details you want AI to use.
  3. Tap the send icon.

For example, you can enter:

"Fill using the following details: John Doe, from grade 9, at Saint Paul's School. Fill in the remaining questions with average financial literacy responses."

AI fills the corresponding fields and tells you what it has changed. To revert the changes, tap the Undo icon in the top toolbar.

Using AI Chat and managing AI models​

Apart from AI Auto Fill, AI mode gives you access to AI Chat and the AI Models settings.

AI Chat​

Tap the AI Chat AI Chat icon to open the chat. Enter questions or instructions in the Ask me anything field, or use one of the predefined tasks for forms: Explain form, Draft email, Translate, and Help me answer. To use another AI model, select it below the input field.

AI Chat

AI model settings​

Tap the Settings Settings icon to open the AI Models settings. Here, you can select the model you want to use, add new models, and edit or delete the existing ones. For details, see Managing AI assistant.

AI Models

Warning

AI-generated suggestions may not always be accurate or complete. Review and verify the filled fields before saving or sharing the completed PDF form.