Share feedback, ideas and get community help

Home
Members
Mateus Z3
M
Mateus Z3
Offline, last seen 3 months ago
Joined September 13, 2024
Current action code:

Plain Text
export const invoke = createAction({
  name: 'Invoke',
  baseOptions,
  options: option.object({
    chain: option.string.layout({
      placeholder: 'Select a chain',
      label: 'Chain',
      isRequired: true,
      fetcher: 'fetchChains',
    }),
  })
  ,
  fetchers: [
    {
      "id": "fetchChains",
      dependencies: ["baseUrl"],
      fetch: async ({ credentials, options }) => {
        return ["1", "2", "3", "4"]
      }
    }
  ],
})


the return of the fetcher is static for now only for me to test, I change the baseURL and see the chain component blinking but no data is added to the dropdown, am I missing something?
6 comments
B
M
How do I append values to a variable without it converting to string?
I need to have a list of json, I'm sending this to my endpoint:
Plain Text
{
  "input": {
    "messages": {{Chat history}}
  }
}


tried to use the "custom" option for the variables but I still get a list of strings in the Chat history variable
3 comments
M
B
I'm able to import the Standard component to use the chat but I'm unable to import the Bubble component, it results in the following:

Plain Text
Failed to compile.

./src/App.js
Module not found: Can't resolve '@typebot.io/react/dist/Bubble'
6 comments
B
M