Axelspace

iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🛠️

7 Useful Tools for Internal Digital Transformation (DX)

に公開1件
AxelspaceのTipsの記事です

I would like to introduce the services we frequently use for internal DX (business process improvement/efficiency) at our company.

https://qiita.com/advent-calendar/2024/rpa

Points to note when reading this article

  • I will not go into minute details about each service.
  • I have written this with the goal of helping you understand the differences between services to assist in your decision-making.
  • Please read this with the mindset of "Oh, such services exist" or "This is the kind of criteria they use to decide which service to use."
  • While paid services are included, this is not an advertisement; please read it as a pure reflection of how we use these tools for improvement.

Our company's policy for choosing services

  • Reduce manual labor and automate as much as possible.
  • Actively adopt paid services if they provide value.
  • Since our internal infrastructure is based on Google services, we prioritize Google-related services when similar options exist.
  • Since times change quickly, we aim to build small, simple, and disposable solutions.

1. Zapier

https://zapier.com/

Key features, pros, and cons

  • Allows connecting many services without code.
    • It is best used for simple scenarios, such as passing data from service XX to service YY at a certain timing, with some transformation in between.
    • You can write JavaScript or Python if necessary (though management and testing can be a bit cumbersome).
  • You need to grant permissions to Zapier, but it handles the authentication integration automatically, making connections very easy.
    • Handling authentication manually is a hassle regarding tokens and implementation, so this is very helpful.
  • Payment is almost mandatory
    • There is a free plan, but it's hard to appreciate the value with that alone.
    • Each plan has a cap on the number of tasks that can be executed per month (one node of no-code processing).
      • Therefore, costs can become high if many processing steps are required.
        • If you only want to capture a trigger timing, a management-style usage of just calling other services (like GAS or GitHub Actions) is also an option.
    • You cannot set an upper limit on task usage for each individual Zap.
      • If you miscalculate the usage, all Zaps will stop (additional task purchases are available separately).
  • Due to its no-code nature, it is only suitable for simple processing.
  • There is also a cheaper competitor service called make. https://www.make.com

The plan we use

We use the Team plan, which costs $1428/year for 5000 tasks per month.

Use cases at our company

  • Using ChatGPT from Slack to translate text.
  • Searching for internal jargon from Slack.
  • Extracting items from tickets and inputting them into spreadsheets.

2. Google Apps Script(GAS)

https://developers.google.com/apps-script

Main features, pros, and cons

  • Development is based on JavaScript.
  • Free!
  • Allows automation of Google Sheets and Gmail processes.
  • Can be triggered periodically or by events (such as when a file is edited or an email is received).
  • Can also be used to integrate with external services as a simple cron utility (it does not necessarily have to be limited to Google-related services).
    • There is no problem if it stays within Google services, but there is a slight learning curve when communicating externally, and you need to use dedicated functions.
  • Using clasp allows for local development and version control. https://github.com/google/clasp
    • It is possible to write in TypeScript.
    • It is possible to use Node libraries if converted to ECMAScript, but it is quite difficult.
      • Since it is a unique JavaScript runtime, it is wiser not to do anything overly complex (a Vanilla-style approach is better).
      • You can write tests if you really want to, but there are many concerns, such as how to mock the API portions.
  • Therefore, I do not recommend writing and executing long code.
    • I feel that it is appropriate to use it for tasks at the scale of slightly modifying output from generative AI such as ChatGPT.
  • You can also build web apps, but there are not many use cases (it's not the intended purpose, but we sometimes use it as an endpoint to be called by other services).
  • The timeout limit (6 minutes) is quite strict, so you need to be careful when processing large amounts of data.

Use cases at our company

  • Automatic updates of employee Slack profiles.
  • Periodic export of ERP data to Google Sheets.
  • Linking GitHub employee accounts with the employee directory.

3. Google Colab

https://colab.research.google.com

Main features, pros, and cons

  • A Jupyter-based environment where you can execute Python code in a browser.
    • While the primary use case is expected to be machine learning or data analysis, it is also very useful for DX purposes.
    • Python libraries can be used easily (there are no external communication restrictions like those found in GAS).
    • Since it can be shared with other users, it is useful for creating convenient tools that do not depend on the user's environment (it is extremely handy for use cases like running a script once a month by storing files in Google Drive, entering input parameters such as filenames, and clicking run).
    • It is easy to debug because the state is shared when an error occurs during execution.
  • There is a paid version, but the free version is sufficient for DX purposes.
  • Data integration is easy because you can mount Google Drive.
    • Shell commands can also be used, making it possible to easily run one-liners on the mounted Google Drive.
  • Periodic execution is not possible (*Periodic execution is available in the paid Pro+ plan).

Use cases at our company

  • Automatic data entry for Excel files (You could use GAS, but Python is easier because you can use pyexcel).

4. GitHub Actions

https://github.com/features/actions

Main features, pros, and cons

  • You can set up CI/CD (Continuous Integration/Continuous Delivery) using YAML.
  • Trigger timing and conditions are fully customizable.
  • You can also standardize processes using Actions.
  • Since you can also run programs, you can develop using any programming language.
  • Useful for complex processing that requires periodic execution (cron-like tasks) while properly managing the code.
  • There is a free tier; once you exceed it, you will be charged, but it is much more cost-effective to run than Zapier.
  • However, it is not as easy to use as Zapier or GAS.
    • Iterations are long, and debugging can be cumbersome.

Use cases at our company

  • Executing Terraform to automatically add/remove Google Workspace users.
  • Running programs to list the status of repository permissions and topics within GitHub.
  • Running programs to associate GitHub usernames with employee names.

5. ChatGPT (GPTs)

https://chatgpt.com/gpts

Main features, pros, and cons

  • You can build AI agents specialized for specific tasks or domains by leveraging GPTs, which allow for custom configurations of ChatGPT.
  • Background knowledge can be easily incorporated by attaching files.
  • It is also possible to incorporate external data by using Actions.
  • Since it is easy to create, even non-IT employees can build them, making it easy to scale across the company.
  • There is no collaborative editing feature (though there is a sharing feature), so management depends on a single person.
  • You need to manage prompt versioning on your end.
  • If you are not using the API, users need to have their own ChatGPT accounts.
    • Using the API also incurs additional costs per call.

Plan used at our company

We use the Team plan.

Use cases at our company

  • Translation tools
  • Proofreading tools
  • Answer tools for internal regulations and rules
  • Knowledge base answer tools specific to projects

6. Dify

https://dify.ai

Main features, pros, and cons

  • Similar to Zapier, it can link various services, but it specializes in AI.
  • More convenient than Zapier for complex generative AI processing.
  • It supports various AI models, so you can choose the one that suits your needs.
  • There is a cloud service (paid) and an OSS version (free) that you can build on your own server (self-hosted).
    • The OSS version can be easily built using Docker.
  • If a template exists for your requirements, you can easily create workflows.
  • There is quite a bit of "grunt work" involved, such as prompt engineering, tuning, and cleaning knowledge data, before it becomes practical for use.
    • Unlike traditional programming, development does not always proceed linearly, which can be challenging (similar to machine learning).

Use cases at our company

  • Slack bot for terminology answers

https://zenn.dev/axelspace/articles/342cc27b6a3854

  • Slack thread summarization app

7. Google Sheets

https://workspace.google.com/products/sheets/

Main features, pros, and cons

  • It is the Google version of Excel, as everyone knows. Spreadsheets.
  • Its strength lies in its ability to edit information easily and with high flexibility.
  • It is familiar to non-engineers as well.
  • It uses powerful functions not found in Excel (such as QUERY and Regex-related functions).
    • If things become too complex, it is easier and more transparent to build it with GAS.
  • Collaborative editing is available.
    • However, if someone applies a filter, it is reflected for everyone (I wish they would fix this).
  • It crashes rarely when handling large amounts of data, or may freeze with complex formulas.
    • There are also limits to the number of cells, so it is not suitable for processing massive datasets.

Use cases at our company

  • Analysis and output of business data
  • Lists of internal services, servers, etc.
  • Simple surveys that do not require the use of Google Forms
  • Reporting documents such as monthly reports

Decision points for choosing which one to use

  1. Zapier
    • Can you afford the cost?
    • Is the service you want to link supported?
    • Is it acceptable from a security standpoint to link the account? (Are you limiting the account scopes and information linked?)
    • Is the processing step lightweight? (About 10 tasks or fewer is ideal)
    • Is it simple processing with few branches or loops?
  2. Google Apps Script (GAS)
    • Is the execution time short?
    • Do you want to keep costs down?
    • Is the code short? (Are you just combining outputs from generative AI?)
    • It is good to consider Zapier for simple tasks, GitHub Actions for complex ones, and GAS for the middle ground.
    • Are you okay with the slight effort required to manage the code?
  3. Colab
    • Are the users comfortable with it?
    • If you need periodic execution, it is better to use Zapier, GAS, or GitHub Actions.
  4. GitHub Actions
    • Is there enough code to justify managing it with Git? (If not, use Zapier or GAS)
    • Are you okay with the fact that development is not very "easy"?
  5. ChatGPT (GPTs)
    • Do the users have access to the organization's ChatGPT?
    • Can you tolerate inaccuracies in the results? (Hallucinations)
  6. Dify
    • Will you run the AI multiple times? (There are patterns where Zapier is better if it is not complex)
    • Is there already a template for what you want to improve? (If yes, development becomes easier)
  7. Google Sheets
    • Consider whether the data truly should be managed in a spreadsheet.
      • If it is shared and others have edit permissions, the data could be unexpectedly overwritten.

Conclusion

I have written about various features, but personally, I choose services based on the following impression:

  1. For easy implementation: Zapier
  2. For slightly complex tasks while keeping costs down: GAS
  3. For complex tasks without needing periodic execution: Colab
  4. For doing things properly: GitHub Actions
  5. For "easy" AI tasks: GPTs
  6. For doing AI "properly": Dify
  7. For a wide variety of other tasks: Google Sheets
Axelspace
Axelspace

Discussion