Build a pull with Sam
From the name of an app to a stream landing its records in your warehouse, in one conversation with Sam.
Sam writes a pull's connector from the app's own API documentation, tries it with your credential, and asks you to approve it before anything runs. You need to be an owner or admin, and you need the app's API key or sign-in to hand.
Before you start
- The app has an API, and you can get a key for it. Most cloud apps have one, under a heading such as Settings · API, Integrations or Developers. If yours needs a sales call to switch it on, do that first.
- The address of its API documentation, usually called the API reference. Sam reads only sites you name in the conversation.
- A warehouse to land in. See provision a warehouse.
Build the stream
- Ask Sam. Go to Data · Streams · Pull and press Ask Sam to create one, the last card under Choose a source, or tell Sam in your own words: "Bring our sales from Example POS into the warehouse every 15 minutes." An app whose card says Syncs through a connection signs in with OAuth rather than a key, so it comes in through a connection instead.
- Say where the documentation is. Sam asks for the address of the API reference if you haven't given it. Paste it into the chat. If Sam knows the address, it offers it as a button: pressing the button names it, just as typing it would.
- Let Sam read and write. Sam reads the documentation, then writes a connector for what you asked for. Each step shows in the conversation as it happens. If Sanda refuses the connector (a host it may not use, a resource with no key), Sam reads why and fixes it.
- Connect your credential. Sam opens the connector's page with a form beside the conversation and says what to paste and where the app shows it. Paste the key into the form, never into the chat, and press Check and connect. Sanda checks it with the app before keeping it.
- Tell Sam it is connected. Sam tries each thing the connector reads: the first pages, with your credential, landing nothing. It tells you what came back, and fixes the connector if something is wrong, such as a cursor that doesn't move.
- Approve, and start. Sam asks for two things at once, as cards in the conversation: approving the connector, which names the hosts it may talk to and what it may do there, and starting the pull, with its schedule. Read the first card, then press Confirm all.
The pull's first run starts straight away, and the pull is listed under Your pulls on Pull. Its page shows the tables it landed and every run.
If you would rather do part of it yourself
Everything Sam does has a place on the page, for an owner or admin:
- A connector waiting for approval is under Waiting for approval. Open it to read what it may touch, try it, and press Approve. See approve a connector.
- A credential is connected with Connect beside the connector under Connected on Pull, on the connector's page, or in New pull on that connector (Connect one). Each one is listed under its connector, and Connect adds another.
- A pull on an approved connector is made with New pull: press the connector's card, then a name, the credential, what to read, any settings the connector asks for (a location, an account), and the schedule.
Choosing a schedule
A pull can run as often as every 15 minutes on Standard and every 5 minutes on Enterprise, or once a day at a time of day, within the hours and on the days you choose. When it runs is the first section of a pull's editor. See when a stream runs.
Data is never fresher than the app makes it. Some apps publish a sale the moment it closes; others only at the end of the day. And every run spends some of the app's API allowance and wakes your warehouse, so choose the slowest schedule your team really needs, and only the hours it is needed. Under the schedule, the editor draws every run and says what it costs a month. See what streams cost.
When it stops working
An app changes its API, or a key is rotated, and a run fails. The stream's page says why, in the app's own words where it gave any, and lists every request the run made.
- The app refused the credential. The stream waits, and its credential is marked type it again. Press Type it again beside the credential under Connected and paste the new key.
- Anything else. Press Ask Sam to fix it on the stream's page. Sam reads the error and the requests, writes a fixed version of the connector, tries it, and asks you to approve it. Once approved, the stream runs the new version.
Something unclear or out of date? Tell us, and we will fix the page.