Discussions

Ask a Question

Guidance Required: Implementing API Calls in Copilot for a Basic Query-Response Function

Dear all, I apologize for any inconvenience this query may cause. I have been an avid enthusiast of Copilot for a considerable time, and I am now seeking to leverage its API (via REST API calls, likely in PHP) to implement a straightforward function. This function should take a string (a question) as input and return Copilot's response as output. Could anyone guide me on the sequence, order, and types of API calls required to achieve this? For context, I have previously developed a similar procedure using OpenAPI. In that scenario, the sequence involved opening a thread, creating a message, assigning the message to the thread, executing the thread, reading the messages, and finally closing the thread. I am particularly eager to transition to Copilot and would greatly appreciate any insights or a rundown of the main steps involved. Given the excellent documentation on the website, I am confident I can handle the implementation once I have a clear understanding of the primary steps. Thank you very much for your assistance, and I apologize if this question seems elementary. Best regards, Giuseppe
ANSWERED

Change Menu Font Size

How can I change the font size menu bar items / apps? Optionally, how can I add CSS to style the portal?
ANSWERED

File detail - API Response and Webhook event contains outdated file name

When requesting data for a file with a given ID, the API response contains outdated filename information. Meaning that when a filename is changed through the Copilot web interface, the API and webhook event does not contain the updated information. For example, GET <https://api.copilot.com/v1/files/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX> returns the following response: ```Text JSON { "channelId": "XXXXXXXXX/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "createdAt": "2024-03-27T00:17:13.172432669Z", "creatorId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "downloadUrl": "XXX", "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "linkUrl": "", "name": "original name.csv", "object": "file", "path": "TEST PATH/original name.csv", "size": 782596 } ``` Even though the current filename is **TEST NEW NAME.csv**, the old **original name.csv** is returned. A similar result is posted to the registered webhook endpoint when a filename is updated: ```json JSON Copilot Event :: file.updated { channelId: 'XXXXXXXXX/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', createdAt: '2024-03-27T00:17:13.172432669Z', creatorId: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', id: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', linkUrl: '', name: 'original name.csv', object: 'file', path: 'TEST PATH/original name.csv', } ``` [block:image] { "images": [ { "image": [ "https://files.readme.io/38d974d-image.png", null, null ], "align": "center", "border": true, "caption": "Screenshot of Copilot web interface" } ] } [/block]
ANSWERED

Issue with Vercel deployment for a custom app

I am trying to deploy on vercel with the instructions provided but it seems it keeps failing ` Creating an optimized production build ... ✓ Compiled successfully Linting and checking validity of types ...Failed to compile../node_modules/copilot-node-sdk/codegen/api/core/CancelablePromise.ts:26:5Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher. 24 | 25 | export class CancelablePromise<T> implements Promise<T> {> 26 | #isResolved: boolean; | ^ 27 | #isRejected: boolean; 28 | #isCancelled: boolean; 29 | readonly #cancelHandlers: (() => void)[];Error: Command "yarn run build" exited with 1` This is with the main branch of the custom app github repo
ANSWERED

How to Chat with Copilot from API?

How to Chat with Copilot from API? As the API mentioned in the Introduction section of the API Reference seems to be not working. It has incomplete details such as json request body and resource is missing in the endpoint. Please find below details the API provides. curl -X POST -H "Content-Type: application/json" -H "X-API-KEY: <Replace this with your API Key>" --data '<Replace this with a json request body as needed>' <https://api.copilot.com/v1/><Replace this with a resource>\` Please assist.
ANSWERED

Using API

how can I use my API key for chating wih copilot
ANSWERED

Embedding Squarespace Web Pages

I love the idea of using the custom links to embed content to create extra pages within the portal. It feels like there should be a way to embed a web page from my web site into the portal, but I cannot get this to work. I create a page using squarespace, publish it, then try to share the link within copilot but it keeps saying it can't connect. If I create a landing page within mailchimp and share the link to copilot, it works flawlessly. But I would much rather utlizie this function within my web site on squarespace. Is there any guidance anyone can offer me to help me achieve this?
ANSWERED

How do I get my API key to use in Zapier or Make?

I'm trying to set up automations on both platforms to determine which one I want to use, but I can't find where to get my API key. Please advise, thanks.
ANSWERED

How to set up a sync between Copilot and Dropbox?

How to set up a sync between Copilot and Dropbox? Use Zapier/Make or make a Custom App? HELP!!
ANSWERED

Can I set up an automation just for clients that self-serve sign up?

I want to send a custom welcome message to clients that self-serve sign up but not to clients that were invited by my team. Can I do that?