Skip to content

Fetch google nlp classify text

NLPtext3rd party APIintegrationmodeltopic

Detect topics in text content using Google Cloud's text classification API.

To learn more about the resulting categories and the process see Google's documentation. The list of possible categories is available here.

API integration

To use this step your team needs to have the Google NLP integration configured in Graphext. The corresponding credentials are required to connect to a third-party API. You can configure API integrations following the INTEGRATIONS or ADD INTEGRATION link in the top-left corner of your Team's page, selecting API keys, and then the name of the desired third-party service.

To enable the Google NLP integration in particular you will need access to Google's NLP service. Follow the instructions here to create the required API key.


The following are the step's expected inputs and outputs and their specific types.

Step signature
fetch_google_nlp_classify_text(text_column: text, {"param": value}) -> (categories: list[category])

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.


The step has no parameters, so simply use

Example call (in recipe editor)
fetch_google_nlp_classify_text(ds.text_column) -> (ds.categories)


text_column: column:text

Column containing the texts to analyze. Texts must be in English and contain at least 20 words, or otherwise will be ignored.


categories: column:list[category]

One or more categories assigned to each text. For possible categories see here.


integration: string

ID of the integration you'd like to use.