How to use Textract Adapter ID with Appian AWS Integration?

Certified Associate Developer

How would one use a Textract Adapter when calling AnalyzeDocument or StartDocumentAnalysis in Appian?

I'm not quite sure how to provide the adapter ID when calling Analyze Document from an Appian Integration.

I'm currently using the AWS Textract Connected System that Appian provides for all of my AWS Integrations, but it appears you cannot pass in any adapter IDs, should I be using a web API instead?

  Discussion posts and replies are publicly visible

Parents
  • Hi  ,

    I think there is a limitation on the Appian's AWS Textract Connected System  that it does not natively expose a way to add the AdaptersConfig parameter or pass an adapter ID using its built-in integration objects—it's limited to standard Textract parameters.

    I would suggest that you can use the Amazon Textract APIs directly by creating a new integration Object with HTTP Connected System as per their documentation you can use the below code block to configure the payload.

    "AdaptersConfig": {
      "Adapters": [
        {
          "AdapterId": "YOUR_ADAPTER_ID",
          "Version": "1",
          "Pages": ["*"]
        }
      ]
    }
    



    In case the configuration of AWS Textract API is complex then you can consider implementing a custom proxy (such as an AWS Lambda or API Gateway endpoint) that Appian calls. This proxy then invokes Textract with the adapter parameters.

    Hope that helps.

Reply
  • Hi  ,

    I think there is a limitation on the Appian's AWS Textract Connected System  that it does not natively expose a way to add the AdaptersConfig parameter or pass an adapter ID using its built-in integration objects—it's limited to standard Textract parameters.

    I would suggest that you can use the Amazon Textract APIs directly by creating a new integration Object with HTTP Connected System as per their documentation you can use the below code block to configure the payload.

    "AdaptersConfig": {
      "Adapters": [
        {
          "AdapterId": "YOUR_ADAPTER_ID",
          "Version": "1",
          "Pages": ["*"]
        }
      ]
    }
    



    In case the configuration of AWS Textract API is complex then you can consider implementing a custom proxy (such as an AWS Lambda or API Gateway endpoint) that Appian calls. This proxy then invokes Textract with the adapter parameters.

    Hope that helps.

Children
No Data