App connection

Your support agent can check your GitHub issues to tell a customer whether their bug is fixed. Connect the company's account once as an app connection, and every conversation uses it.

With the CLI

Connect with a token

If you don't have an agent named support yet, create one with getstream agents init support --template blank. An agent from the text template answers only about its own company, so this page starts from the blank template. For more about agents, see Creating an agent.

Instead of the browser consent in the quickstart, pass a personal access token on stdin. If you did the quickstart, it already made the label acme. Remove that connection first:

getstream agents connectors unbind support github
getstream agents connections delete acme

Then create it again with the token:

echo "$GITHUB_TOKEN" | getstream agents connections create github --label acme --agent support -H Authorization=-

The CLI checks the token with GitHub. If GitHub refuses it, the CLI saves nothing and tells you so.

Test it

Nobody is asked to sign in, so a test in the terminal uses it too:

getstream agents test support --text

Ask: "What are the open issues in GetStream/awesome-ai-news?" to see the agent read GitHub as the company.

A shop with no sign-in

Shopify needs the shop's myshopify.com address and no sign-in, so the connection is connected as soon as you create it:

getstream agents connections create shopify --label mystore --input shop=mystore.myshopify.com

Then add it to the agent and test it:

getstream agents connectors bind support shopify --connection mystore
getstream agents test support --text

Ask: "Do you ship to Canada?" to see the agent search the shop's policies.

Delete it

getstream agents connections delete acme

The CLI refuses while an agent names the connection under connection. Unbind it from the agent first:

getstream agents connectors unbind support github
Warning:

--force deletes the connection anyway, and leaves the agent naming a connection that no longer exists.

Going further