AI custom metadata

With Zefort’s AI custom metadata tool you can extract metadata from your contract in multiple ways:

zefort chatgpt button

  1. Fill in a metadata field with ChatGPT
  2. Extract custom metadata input from ChatGPT dialog
  3. Create custom metadata attribute with ChatGPT (admin)
  4. Using ChatGPT with bulk operations

Check also:

  1. Supported metadata fields
  2. Tips for generating prompts for ChatGPT


AI custom metadata is part of Zefort’s Advanced AI package. If you want to hear more, please contact our sales team.

Fill in a metadata field with ChatGPT

You can take advantage of ChatGPT also when reviewing contract metadata. You will see the ChatGPT icon next to the metadata field, if the attribute type is supported.

  1. Click the ChatGPT button next tot the metadata field
    zefort chatgpt button
  2. Type a question
  3. Check ChatGPT’s suggestion
  4. Click set value to set input in the metadata field
    • If the ChatGPT suggestion was not applicable, you can try to rephrase your question by clicking Refine question

zefort - fill in metadata field with ChatGPT

Extract custom metadata input from ChatGPT dialog

You can also extract custom metadata from the dialog with ChatGPT

  1. Open the contract and click the ChatGPT button to start a dialog
  2. Type your question or select one of the suggested questions
  3. If you want to set the answer as contract’s metadata, hit  extract as metadata…
  4. Select target metadata attribute from the list
  5. Check the extraction that ChatGPT suggests and either press Set value or refine question

zefort - extract metadata with chatgpt


Create custom metadata attribute with ChatGPT (admin only)

Define a ChatGPT question for custom metadata attributes in order to extract metadata value from the contract. To do this you’ll need admin license with permissions “can manage account settings and tags” and “can manage custom metadata

  1. Go to Account settings > Metadata
  2. Click + Add attribute… to select supported attribute type
  3. Fill in the attribute details
  4. In the field VALUE, type a question prompt for ChatGPT
    • The option “Automatically extract value when processing the contract” is set on as default: in this case the ChatGPT prompt is run automatically when a new contract is uploaded in Zefort. If you unselect the option, the question is saved as a default in the metadata field and user can run the pre-saved prompt manually.
  5. Click Save and drag the attribute in the metadata layout

This question is now stored as default question in the metadata field’s ChatGPT function.

zefort custom metadata chatgpt prompt


Bulk operations with ChatGPT

The ChatGPT function is also available in bulk operations! Investigate the topic further in our article: Contract desktop bulk actions

  1. Select the contracts in your contract desktop
  2. Click button “Metadata” in the toolbar
  3. Pick the metadata field you want to edit
  4. Select option “Set value with ChatGPT
  5. Use the saved prompt or type your own question
  6. Click save

zefort - chatgpt bulk actions

Supported metadata fields

The AI custom metadata functionality is supported by different metadata types: text, multiline text, number, date, boolean and dropdown attributes.

Choose the appropriate data type and settings (e.g. unit), as this will help in parsing and validating the ChatGPT output. Generally  we recommend to use text type attribute only when no other data type is suitable. See below tips for each metadata type.

zefort metadata - text attributeText attribute
No restrictions.


zefort metadata - multiline attributeMultiline text attribute
No restrictions.


zefort metadata - number attributeNumber attribute
Add a unit in the attribute: days, euros, euros / year, percent etc.


zefort metadata - date attributeDate attribute
Provides an exact date which can be explicit in the document, but possibly also inferred.


zefort metadata - boolean attributeBoolean attribute
Use Yes / No type of questions.


zefort metadata - dropdown attibuteDropdown attribute
Provide a list of valid categories in the attribute. Recommended to include also category “Other” or “Unknown”.

Pro tips for generating prompts zefort pro tip

There are some things you need to consider when creating prompts for ChatGPT.

We recommend to develop your prompts iteratively: start simple and experiment with adding the other steps if needed. It is also important to bear in mind the limitations of ChatGPT: it sometimes makes mistakes and the output should ideally be checked by the user. In general, categorical questions are the most complex for the model to process, and might require extra care in developing the prompt and verifying results. Check out these tips to get useful results!

zefort - ChatGPT prompt example 1

  • Be clear and exact in what you are asking for, to avoid that the model misunderstands you.
  • Be concise: keep it simple and ask only one question at a time (not to risk confusing the model)!
  • Provide extra context if necessary: like in the example (see pic above), the name of my organization.
  • To manage the quality of extracted values, tell what the model should do if it doesn’t find the answer in the document: generally it’s better to tell the model how to behave, rather than how not to behave.
  • In the case of categorical or yes/no type of questions, you might consider providing a few examples, if it seems that the model has difficulty understanding exactly what you are looking for.
  • Asking the model to explain its reasoning step-by-step might help it in tasks that require more reasoning (e.g., calculating or combining information in multiple steps).