Slashdot Mirror


Google Docs Gets an API For Task Automation (techcrunch.com)

An anonymous reader quotes a report from TechCrunch: Google today announced the general availability of a new API for Google Docs that will allow developers to automate many of the tasks that users typically do manually in the company's online office suite. The API has been in developer preview since last April's Google Cloud Next 2018 and is now available to all developers. As Google notes, the REST API was designed to help developers build workflow automation services for their users, build content management services and create documents in bulk. Using the API, developers can also set up processes that manipulate documents after the fact to update them, and the API also features the ability to insert, delete, move, merge and format text, insert inline images and work with lists, among other things.

The canonical use case here is invoicing, where you need to regularly create similar documents with ever-changing order numbers and line items based on information from third-party systems (or maybe even just a Google Sheet). Google also notes that the API's import/export abilities allow you to use Docs for internal content management systems.

35 comments

  1. ... until two weeks later, when they casually ment by Anonymous Coward · · Score: 5, Insightful

    ... until two weeks later, when they casually mention in a blog post somewhere that they have removed it.

  2. Re: ... until two weeks later, when they casually by Anonymous Coward · · Score: 0

    It is impossible to keep up with google and their changes unless you are constantly logged in which I am not

  3. VBA macros for Google Docs! by Anonymous Coward · · Score: 2, Insightful

    Google Docs gets malware macros. Welcome to the big leagues! What could possible go wrong?

    1. Re:VBA macros for Google Docs! by Narcocide · · Score: 2

      Well, someone could write an anti-virus program in JavaScript, which would then subsequently exhaust the entirety of the world's computing resources. Poof, no more bitcoin. Sound bad enough?

    2. Re:VBA macros for Google Docs! by HarrySquatter · · Score: 1

      Will the anti-virus run in a Javascript VM as well?

  4. Re: ... until two weeks later, when they casually by Anonymous Coward · · Score: 0

    Just shove a big, black, spiked dildo up your ass. That's what being a Google cuck...err... user is like.

  5. Congratulations, Google by Voyager529 · · Score: 2

    This sounds like a "Macro" with more steps. Welcome to the 1980's.

    1. Re: Congratulations, Google by Anonymous Coward · · Score: 0

      With a macro, everything still stays within the Google Docs environment. An API will let external applications initiate actions, push/pull data, etc.

  6. Invoices need to be electronic. by SETY · · Score: 1

    Rant..
    Invoices are generated by a computer and then get typed into the receivers computer by a human. Super inefficient and prone to error. Invoices need to be electronic and this needed to happen years ago. Iâ(TM)m not talking about special cases for big business. This is a small business problem and needs to happen in atime ftware such as quickbooks without vendor lock-in.

    1. Re:Invoices need to be electronic. by Mr.No · · Score: 2

      Rant.. Invoices are generated by a computer and then get typed into the receivers computer by a human. Super inefficient and prone to error. Invoices need to be electronic and this needed to happen years ago. Iâ(TM)m not talking about special cases for big business. This is a small business problem and needs to happen in atime ftware such as quickbooks without vendor lock-in.

      Exactly. More than 30 years after the usage of computers in most businesses it is shocking to see 100 pages invoices being sent as PDF files and then some other company either typing them into their accounting system or attempt to OCR, push into Excel and then process. Why can't the business analysts, IT people and accounting department sit around a table? The generation of the initial PDF should surely come from an accounting system isn't it?

    2. Re: Invoices need to be electronic. by Anonymous Coward · · Score: 0

      QR codes seems like solution if a physical document is required.

    3. Re:Invoices need to be electronic. by fluffernutter · · Score: 1

      Normally you have to work with real paper when real signatures are required. There is no digital alternative to a real signature.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    4. Re:Invoices need to be electronic. by Anonymous Coward · · Score: 0

      Funny, it's been years since Amazon delivery guys asks me to sign on a digital screen without paper. Also, was involved myself in adding digital signatures to a workflow in iOS apps. Digital signatures can work, but people have to make the effort. Plus if you go digital why use a fakeable signature graphic when you could as well use PKI. Maybe in the next 100 years or so

    5. Re:Invoices need to be electronic. by Anonymous Coward · · Score: 0

      Welcome to modern world !
      https://www.docaposte.com/en/solutions/electronic-signature

    6. Re:Invoices need to be electronic. by fluffernutter · · Score: 1

      Yes and how much does this solution cost? Before you answer, it had better be as cheap as the ink from the pen in my hand or you're wasting your breath.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    7. Re:Invoices need to be electronic. by fluffernutter · · Score: 1

      Are there free digital solutions? Because if I have to pay a cent extra I'll use real paper thanks.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    8. Re: Invoices need to be electronic. by sce7mjm · · Score: 1

      It would require to systems staff of both companies to have a ten minute chat to work out suitable format that can be emailed or uploaded to the other and then parsed into the accounting system.

      I doubt this happens very much because the amount of people who have understanding or control of the systems to the extent required is limited, especially since the push to the cloud with access via api and or third parties only and simplified user interfaces which no longer required a systems team. Ie outsourcing made the process complex, inflexible and cheaper.

      Whoops.

    9. Re:Invoices need to be electronic. by dinfinity · · Score: 1
    10. Re: Invoices need to be electronic. by Anonymous Coward · · Score: 0

      I'm pretty sure it had more to do with the face that this 10 minute conversation would need to happen with every single customer thus giving you a multitude of standards to deal with. I mean sure you could force all of your customers to adhere to your standard but what about their customers?

      I mean nice try, but just like the multitude of methods of communication between individual human beings, there exists a multitude of methods of communication between businesses and good luck getting everyone to the same standard.

      This is the problem with the over specialization that is taught today, people only think of their own use case and how to solve that and forget to consider how that solution would affect the rest of the use cases. This is extremely beneficial to large conglomerates like google who can come out with a standard that satisfies the majority of use cases and then use their influence from other areas to force this on to whole industries

      There has been a push for an XML variant names UBL (for universal business language) but the problem with adoption is the lack of control. That is what the fight is about now a days, power and control, and if you dont control the standard then you are at the mercy of the group that does.

      For example: say you start implementing all of your business documents in google docs and you start to implement this flashy Macro API, you are now at the whim of google and they have a track record of discontinuing things after a couple of years to force people to adopt the next new thing (which will most likely be some old thing but with an all white background and google colored icons for a UI) Sure it will be easier to get all of the suppliers and customers to switch to google docs but then you have just handed google a large amount of power over your industry, one it can use to extract money from you at the rate just less than it would cost you to go to some other standard.

    11. Re: Invoices need to be electronic. by sce7mjm · · Score: 1

      I agree with you. It's a question of scale though.

      If I have ten invoices a month from 1 supplier and 10000 invoices a month from another then I would definitely seek to improve the flow from the larger supplier, whether it is by some published standard or rolled between us and the larger supplier.

      I would not try to solve both tasks with the same solution.

      If my invoice load is 1 invoice each from 10000 suppliers the problem is different and I would be encouraging them to use either our system or again some published standard but be aware that they may refuse.

      My point was if the companies can't do this at all if they no longer have the skills to modify the systems.

  7. Mail merge 2.0 by Anonymous Coward · · Score: 0

    Congratulations for reinventing something?

  8. Decades late by Anonymous Coward · · Score: 0

    There are libraries for pretty much every programming/scripting language for automating document creation with a lot more power than this seems to have.

    The problem with these types of things is that you end up getting the wrong types of people using them. That's why you see people rolling their own software using macros in Excel when it is way outside of the scope of what Excel should be used for.

  9. wow, welcome to 2010 google. by Anonymous Coward · · Score: 0

    I look at this in comparison to what other cloud platforms offer and provide and think OMFG how did google get ANY enterprise customers. I know they lost a lot when reality set in after being conned into moving to them but such basic functionality that is missing is inexcusable and even what they bringing with this still leaves them many years behind their competitors.

    1. Re:wow, welcome to 2010 google. by Anonymous Coward · · Score: 0

      2010?? You are about 20 years too late.

      Welcome to the 90's.

    2. Re:wow, welcome to 2010 google. by fluffernutter · · Score: 1

      I agree, the google mail console was not better than the yahoo mail or the hotmail console. They all suck, yet somehow they persist largely in the state they were at their inception.

      --
      Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  10. Sounds potentially useful, how long until they EoL by AbRASiON · · Score: 1

    Well, it is Google, only a matter of time

    They could save themselves the hassle and just Jill it off now to be honest.

  11. Not really impressed by eminencja · · Score: 1

    After looking at some code samples in the documentation - I'd rather go back in time to the 90's and work with MSOffice and VBA.

    1. Re:Not really impressed by Anonymous Coward · · Score: 0

      Could you elaborate?

  12. Google deploys sed by packrat0x · · Score: 1

    ... but changes all the options

    --
    227-3517
  13. weak AI by fluffernutter · · Score: 1

    Wow, other office suites do this with regular programming but Google does it with "AI"! That's progress!

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  14. In other news... by Anonymous Coward · · Score: 0

    The Google Tasks web interface is being shutdown.
    https://9to5google.com/2019/02/05/google-tasks-web-dead/

  15. Sparking more inventions by GlobalEcho · · Score: 1

    Every few years, I end up talking to some poor schlub who has reinvented relational databases. Badly.

    It's not their fault, some of the folks are pretty smart. They just don't know. Anyway, Google just enabled another menagerie of eldritch cross-referencing nightmares.

  16. Re:... until two weeks later, when they casually m by Hognoxious · · Score: 1

    They're already working on an API for removing it automatically.

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  17. Re:... until two weeks later, when they casually m by slack_justyb · · Score: 2

    They'll have a framework for that API to automatically remove uses of the replaced API, the framework however will require the use of a new programming language of which they've got a handy SDK for converting Go, C++, and Java into the new programming language which then "compiles" into a 126MB JavaScript blob.

  18. Re:... until two weeks later, when they casually m by Hognoxious · · Score: 1

    They already did all that, but they accidentally ran it on itself.

    You want proof? Well it's not there any more, is it?

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."