Index
Tutorial Videos
Tutorial videos are available here.
Knowledge Base
Visit our User Forum for discussions & solutions
Using AI inside an XpressDox interview
AI has been introduced into long text fields into the interview, making it easier for users to answer repetitive questions. By providing the AI model with the context of the document, as well as how it should answer the long text questions it is asked, responses can be generated according to the prompts as well as the current data from the interview.
Commands used by the Template Author:
XpressDox uses two commands to handle the Interview AI functionality: AITemplateContext and AIContext.
AITemplateContext:
Provide the context for the template; what document is being generated and why is it being generated.
AIContext:
Provide a prompt to the AI model for a specific field. This prompt tells the AI model how it should answer the question it is given, what tone it should use, how the answer should be formatted, and how simple or verbose the response should be.
Note that <Proferred_Job_Title_TE> is a data element already answered in the interview, and let’s say it has the value of “Bookkeeper”. So the prompt becomes “Provide an argument why Beneficiary’s work experience qualifies them for the Bookkeeper” (autocorrected by the AI model!)
Data is included from your interview
Along with the prompt on how to answer the question, the AI model will also be given a data structure containing all the questions and current answers in order to correctly answer the question.
Sample code
Note: AI Fields are only applied to long text fields, so the CaptureAsLongText command must be used.
«AITemplateContext("This document is the petitioning company's response to USCIS' Request for Evidence ("RFE") issued on an H-1B visa petition.
The petitioning company is required to provide evidence to prove that the H-1B requirements questioned by USCIS in its RFE have in fact been satisfied
so that USCIS must approve the H-1B petition for the Beneficiary. The response should explain how the evidence provided in the RFE response addresses the
issues raised by USCIS and that the evidence thus satisfies the requirements for H-1B petition approval.")»
«AIContext(BeneficiaryQualification,”Provide an argument why Beneficiary!’s work experience qualifies them for the position.)»
«CaptureAsLongText(BeneficiaryQualification)»
«AIContext(BeneficiaryQualificationAdvanced,”Outline how the applicant’s work experience and skills can be presented to meet the ‘equivalent experience’
criteria for the specific USCIS visa, when they lack a formal degree? Provide and List examples of documentation or evidence that would effectively support
their case in bullet point format. Tone should be formal and professional. Structure the response in paragraphs for readability. Only provide accurate and
well researched information.”)»
«CaptureAsLongText(BeneficiaryQualificationAdvanced)»
The results
Once you have completed your setup, it’s time to test your Interview AI solution. Note: Interview AI only works on the web from v14 onwards.
Fields which have been provided with AIContext are denoted with the AI icon in the top right of the field. Click this icon to generate a response.
In the example below, you can see different versions of the same question, each answered differently depending on the prompt given by the AIContext command.
Rephrasing the response
Once AI has drafted a response, you have the option to “Rephrase” the response. The “Rephrase” option can be found on the AI icon at the top right:
Additional prompts can also be given to the field to edit the response:
1. At the end of your response, type an instruction inside this field such as “format using bullet points”
2. Click on the AI icon.
3. And then “Rephrase”
4. Now type a different instruction such as “format using numbering”. Click the AI button.
5. And “Rephrase” once again
6. And lastly type “elaborate on number 4”. Click the AI button
7. Click “Rephrase”
Note that this feature will be available in v16.