I am new to FF. I have a chatbot widget that integrates via voiceflow API ( returns JSON). Is there a way to use Linkify to render the URL in my custom action?
if (jsonObject['type'] == 'text' && jsonObject.containsKey('payload')) {
if (jsonObject['payload'] is Map<String, dynamic> &&
jsonObject['payload'].containsKey('message')) {
ChatAIStruct chatAI = ChatAIStruct(
type: 'text',
fromAI: true,
message: jsonObject['payload']['message'].toString(),
);
await updateGlobalChat(chatAI);
}
}
The updateGlobalChat updates an app state variable and I show it in my widget as text.