Skip to content

Conversation

@rambip
Copy link
Collaborator

@rambip rambip commented Nov 14, 2025

Summary

This PR creates a dag to export all articles in the helpscout documentation to a grist table.

It features the GristApi.sync_table functions, which allow to update rows based on an ID, and insert them otherwise.
It would have been to hard to do with n8n.

I created the dag by copying "grist_dump_ca", I hope it is fine. I did not test it locally with airflow, just as a script.

Connection and variables

  • new connection: helpscout. Host is undefined, login is the helpscout API key, and password is undefined (dummy password). Note that we could store the token inside the password field if it makes more sense
  • new variable: helpscout_documentation_grist_doc_id = gWGHLcSqe9r45sSrsDHLrL

I hardcoded the id of the collection (5d1c770a04286369ad8d1458), I can put it in a variable it you think it's cleaner.

Copy link
Collaborator

@JeanLouisLamezec JeanLouisLamezec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

with DAG(
dag_id="fecth_helpscout_doc",
default_args={"owner": "airflow"},
schedule="45 0 * * *",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just change that to avoid that all dags are triggered at the same time

@rambip rambip merged commit bc63f2f into main Nov 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants