# US 2026/0064411 A1 · Interactive Chatbot Documentation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064411 A1
- Document ID: US20260064411A1
- Status: Published application
- Kind: A1
- Application number: 19/378,968
- Filed: 2025-11-04
- Published: 2026-03-05
- Earliest claimed: 2023-04-28
- Assignees: ServiceNow, Inc.
- Applicants: ServiceNow, Inc.
- Inventors: Amine El Hattami; Christopher Joseph Pal
- Web page: https://patentgrep.com/patent/US20260064411A1

## CPC

- G06F 8/73: Program documentation
- G06F 16/3329: Natural language query formulation
- G06F 8/30: Creation or generation of source code
- G06F 8/33: Intelligent editors
- G06F 8/51: Source to source
- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In the present application, a method for providing interactive documentation based on a chatbot and deep-learning based techniques is disclosed. Metadata associated with program code documentation is identified, wherein the program code documentation is associated with corresponding program code. A natural language question regarding the corresponding program code is obtained via a virtual agent. A response to the natural language question is determined based on the metadata using one or more trained machine learning models. The response to the natural language question is provided to the virtual agent.

## Claims

### Claim 1

A method comprising:
determining a complexity associated with source code based on a plurality of independent execution paths in the source code;
obtaining, via a virtual agent, a natural language question regarding the source code;
determining a response to the natural language question based on the complexity associated with the source code; and
providing, to the virtual agent, the response to the natural language question.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the complexity associated with the source code comprises determining a cyclomatic complexity of the source code.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the complexity associated with the source code comprises determining a number of the independent execution paths in the source code.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the complexity associated with the source code comprises determining a code complexity score in documentation of the source code.

### Claim 5 (depends on 4)

The method of claim 4, wherein the code complexity score is stored in metadata within the documentation of the source code, and wherein determining the response to the natural language question is also based on the metadata.

### Claim 6 (depends on 5)

The method of claim 5, wherein the metadata also includes prerequisite knowledge associated with the source code.

### Claim 7 (depends on 5)

The method of claim 5, wherein the metadata characterizes different sections included in the documentation of the source code.

### Claim 8 (depends on 4)

The method of claim 4, wherein the documentation of the source code includes one or more program code examples.

### Claim 9 (depends on 4)

The method of claim 4, wherein determining the complexity associated with the source code comprises determining a second code complexity score in second documentation of a second portion of the source code.

### Claim 10 (depends on 1)

The method of claim 1, wherein the natural language question is provided by a user in conversation with the virtual agent.

### Claim 11 (depends on 1)

The method of claim 1, wherein the natural language question comprises a request for documentation of the source code.

### Claim 12 (depends on 1)

The method of claim 1, wherein determining the response to the natural language question comprises:
providing the natural language question to a trained machine learning model; and
receiving the response to the natural language question from the trained machine learning model.

### Claim 13 (depends on 12)

The method of claim 12, wherein the trained machine learning model includes a neural ranking model that provides a ranked list of pointers to the source code.

### Claim 14 (depends on 13)

The method of claim 13, wherein the response to the natural language question includes a request for additional input when the neural ranking model provides an empty list.

### Claim 15 (depends on 12)

The method of claim 12, wherein the trained machine learning model is configured to perform a dialog task tailored for one or more of: a level of expertise, prior knowledge, an education level, or an age group.

### Claim 16 (depends on 12)

The method of claim 12, wherein the trained machine learning model is configured to perform summarization of the source code.

### Claim 17 (depends on 1)

The method of claim 1, further comprising:
obtaining user information via the virtual agent, wherein the user information comprises one or more of: a level of expertise, prior knowledge, an education level, or an age group.

### Claim 18 (depends on 1)

The method of claim 1, wherein the response to the natural language question includes one or more of: generated dialog, generated code, or generated code summarization.

### Claim 19

A non-transitory computer-readable medium, storing program instructions that, when executed by one or more processors of a computing system, cause the computing system to perform operations comprising:
determining a complexity associated with source code based on a plurality of independent execution paths in the source code;
obtaining, via a virtual agent, a natural language question regarding the source code;
determining a response to the natural language question based on the complexity associated with the source code; and
providing, to the virtual agent, the response to the natural language question.

### Claim 20

A computing system comprising:
one or more processors;
memory; and
program instructions, stored in the memory, that upon execution by the one or more processors cause the computing system to perform operations comprising:
determining a complexity associated with source code based on a plurality of independent execution paths in the source code;
obtaining, via a virtual agent, a natural language question regarding the source code;
determining a response to the natural language question based on the complexity associated with the source code; and
providing, to the virtual agent, the response to the natural language question.
