Linking with multimedia intent
    • PDF

    Linking with multimedia intent

    • PDF

    Article Summary

    Available in Classic and VPC

    If the user sends multimedia instead of text, then that multimedia can be sent to an external analysis API to be analyzed and an answer can be provided according to the result. Only image intents are supported at this time, and it works most smoothly on the LINE messenger channel.

    • NAVER Cloud Platform also offers the CLOVA OCR service which utilizes multimedia (image) intents, and it provides the feature to link the OCR service to the chatbot through multimedia intent linkage.
    • The LINE messenger channel provides the existing image processing specifications and push specifications. If linking with the LINE messenger, then the chatbot can receive multimedia input, check the intent with OCR, and send a specific information as a question again. However, if you use the feature in platforms other than the LINE messenger, it will provide the image analysis but the chatbot's answers will not be provided. Due to the characteristics of each channel, there is a limitation of one-way multimedia intent recognition and linkage.

    The following describes how to link image intents.

    1. From the NAVER Cloud Platform console, click the Services > CLOVA Chatbot > Domain menus, in that order.
    2. Click the [Run builder] button of the domain you want to run the chatbot builder.
    3. From the chatbot builder, click Chatbot settings > Multimedia intent tab.
    4. Click the [Link] button of the image intent.
    5. Select Link external image analysis solution.
      • If you're using the CLOVA OCR, then select Link with CLOVA OCR (However, only OCR template domains are supported)
    6. Enter the API URL and secret key for authenticating images.
      • When the user sends an image, the image is sent to the input API URL.

    Image delivery format: for LINE messenger

    {
      "domainCode": "ai.company.v6",
      "userId": "U77c8fe9743a0af83d4dbd57dc2f39e8a",
      "platform": "line",
      "query": "",
      "multimediaLine": {
        "contentId": 11096934827632,
        "typ": "image"
      }
    }
    
    ValueRequiredTypeDescription
    multimediaLineObjectNUsed to send content ID information such as images
    multimediaLine.contentIdLongYID of the content
    multimediaLine.typStringYSpecifies ID of the content. Currently available only for images
    multimediaLineObjectNUsed to send content ID information such as images

    Image delivery format: for custom channel
    As the push feature is used, the chatbot's answers are not provided, even though image analysis is available with the use of the feature in platforms other than the LINE messenger.

    {
      "domainCode": "ai.company.v6",
      "userId": "U77c8fe9743a0af83d4dbd57dc2f39e8a",
      "platform": "custom",
      "query": "",
      "multimedia": {
        "data": "",
        "typ": "",
        "extension": ""
      }
    }
    
    ValueRequiredTypeDescription
    multimediaObjectNUsed to send multimedia such as images
    multimedia.dataStringYThe multimedia's data
    The data must be encoded in Base64
    multimedia.typStringYDisplays the type of multimedia. Currently available only for images
    multimedia.extensionStringYThe file extension information of the multimedia could be .jpeg, .png, etc.

    The format that should be used to respond to the chatbot after the image analysis
    The name of matchedTemplate is sent to the chatbot again as a question.

    {
      "matchedTemplate": {
      "name": "Analyzed template name",
       }
    }
    

    Compose conversation using multimedia intent

    To utilize multimedia intent, select the question type as "Regular expression question" when registering conversation questions, and enter the CLOVA OCR template name in the question. The template name analyzed in CLOVA OCR will be used by the chatbot to ask as a question.
    It can also be used in the same way when it's linked with an external image analysis solution.
    chatbot-chatbot-6-6_01_en


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.