apptreeio_fulfillment

An SDK for interacting with the AppTree IO assistant.

Usage no npm install needed!

<script type="module">
  import apptreeioFulfillment from 'https://cdn.skypack.dev/apptreeio_fulfillment';
</script>

README

To generate the Graph API Client run the following:

  1. Install the generator npm install -g graphql-typed-client
  2. generate-graphql-client --endpoint https://us-central1-apptreeio-sandbox.cloudfunctions.net/graphapi --output ./lib/chat_service

Using the generated client

    const resp = await this.graphChatService.chain.query
                           .thread({ id: "1234" })
                           .execute({ completed: 1, topic: 1 });