Generating and updating conversational artifacts from APIS

US12124811B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12124811-B2
Application numberUS-202117454302-A
CountryUS
Kind codeB2
Filing dateNov 10, 2021
Priority dateNov 10, 2021
Publication dateOct 22, 2024
Grant dateOct 22, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method, computer system, and a computer program product for generating a conversational bot for an application programming interface (API) is provided. The present invention may include parsing an API schema. The present invention may include generating sentences for the conversational bot from the parsed API schema. The present invention may include constructing the conversational bot by training a deep learning model. The present invention may include receiving a natural language expression from a user. The present invention may include determining whether the natural language expression is enough to activate the bot.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for generating a conversational bot for an application programming interface (API), the method comprising: parsing an API schema to extract a plurality of artifacts; training a deep learning model to generate a plurality of sentences comprising a conversational bot using a plurality of variants of intents and parameters comprising the extracted artifacts; constructing, by the trained deep learning model, the conversational bot by generating the plurality of sentences; receiving a natural language expression from a user; determining whether the natural language expression is enough to activate the bot; and responsive to determining that the natural language expression is not enough to activate the bot: retrieving one or more successful utterances from a same session as the natural language expression; determining a similarity of one or more of the retrieved successful utterances to the natural language expression; responsive to the similarity of one or more of the retrieved successful utterances exceeding a threshold level, adding the one or more natural language expressions as a sample intent; and retraining the deep learning model with the sample intent. 2. The method of claim 1 , wherein parsing the API schema further comprises: identifying a set of descriptions and a summary of what the API does. 3. The method of claim 1 , wherein the sentences are generated for the conversational bot from the parsed API schema using an ensemble of methods. 4. The method of claim 1 , wherein the natural language expression received from the user is a text expression, an utterance or an audible speech. 5. The method of claim 1 , wherein it is determined that the natural language expression is not enough to activate the bot, further comprising: receiving feedback from the user; determining a similarity between the received feedback and at least one successful utterance; associating the natural language expression with the at least one successful utterance in a database; and retraining the deep learning model. 6. The method of claim 1 , wherein the natural language expression is received in a conversational interface on top of the API. 7. The method of claim 1 , wherein it is determined that the natural language expression is enough to activate the bot, further comprising: executing a computer code to invoke an API call. 8. A computer system for generating a conversational bot for an application programming interface (API), comprising: one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage medium, and program instructions stored on at least one of the one or more tangible storage medium for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the computer system is capable of performing a method comprising: parsing an API schema to extract a plurality of artifacts; training a deep learning model to generate a plurality of sentences comprising a conversational bot using a plurality of variants of intents and parameters comprising the extracted artifacts; constructing, by the trained deep learning model, the conversational bot by generating the plurality of sentences; receiving a natural language expression from a user; determining whether the natural language expression is enough to activate the bot; and responsive to determining that the natural language expression is not enough to activate the bot: retrieving one or more successful utterances from a same session as the natural language expression; determining a similarity of one or more of the retrieved successful utterances to the natural language expression; responsive to the similarity of one or more of the retrieved successful utterances exceeding a threshold level, adding the one or more natural language expressions as a sample intent; and retraining the deep learning model with the sample intent. 9. The computer system of claim 8 , wherein parsing the API schema further comprises: identifying a set of descriptions and a summary of what the API does. 10. The computer system of claim 8 , wherein the sentences are generated for the conversational bot from the parsed API schema using an ensemble of methods. 11. The computer system of claim 8 , wherein the natural language expression received from the user is a text expression, an utterance or an audible speech. 12. The computer system of claim 8 , wherein it is determined that the natural language expression is not enough to activate the bot, further comprising: receiving feedback from the user; determining a similarity between the received feedback and at least one successful utterance; associating the natural language expression with the at least one successful utterance in a database; and retraining the deep learning model. 13. The computer system of claim 8 , wherein the natural language expression is received in a conversational interface on top of the API. 14. The computer system of claim 8 , wherein it is determined that the natural language expression is enough to activate the bot, further comprising: executing a computer code to invoke an API call. 15. A computer program product for generating a conversational bot for an application programming interface (API), comprising: one or more non-transitory computer-readable storage media and program instructions stored on at least one of the one or more tangible storage media, the program instructions executable by a processor to cause the processor to perform a method comprising: parsing an API schema to extract a plurality of artifacts; training a deep learning model to generate a plurality of sentences comprising a conversational bot using a plurality of variants of intents and parameters comprising the extracted artifacts; constructing, by the trained deep learning model, the conversational bot by generating the plurality of sentences; receiving a natural language expression from a user; determining whether the natural language expression is enough to activate the bot; and responsive to determining that the natural language expression is not enough to activate the bot: retrieving one or more successful utterances from a same session as the natural language expression; determining a similarity of one or more of the retrieved successful utterances to the natural language expression; responsive to the similarity of one or more of the retrieved successful utterances exceeding a threshold level, adding the one or more natural language expressions as a sample intent; and retraining the deep learning model with the sample intent. 16. The computer program product of claim 15 , wherein parsing the API schema further comprises: identifying a set of descriptions and a summary of what the API does. 17. The computer program product of claim 15 , wherein the sentences are generated for the conversational bot from the parsed API schema using an ensemble of methods. 18. The computer program product of claim 15 , wherein the natural language expression received from the user is a text expression, an utterance or an audible speech. 19. The computer program product of claim 15 , wherein it is determined that the natural language expression is not enough to activate the bot, further comprising: receiving feedback from the user; determining a similarity between the received feedback and at least one successful utterance; associating the natural language expression with the at least one successf

Assignees

Inventors

Classifications

  • Neural networks · CPC title

  • Learning methods · CPC title

  • based on feedback of a supervisor · CPC title

  • Generating training patterns; Bootstrap methods, e.g. bagging or boosting · CPC title

  • Parsing · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12124811B2 cover?
A method, computer system, and a computer program product for generating a conversational bot for an application programming interface (API) is provided. The present invention may include parsing an API schema. The present invention may include generating sentences for the conversational bot from the parsed API schema. The present invention may include constructing the conversational bot by tra…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F40/40. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 22 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 10 related publications on this page (citations in our corpus or others sharing the same primary CPC).