Custome action with weather api code

hey @sunilskn, you can do like this , just replace the url and parse the data , must be working

from rasa_sdk import Action

from rasa_sdk.events import SlotSet

import requests

import json

class ActionCheckWeather(Action):

def name(self):
    return "action_check_api"

def run(self, dispatcher, tracker, domain):
    response = requests.get("https://jsonplaceholder.typicode.com/todos/1")
    jsonResponse = response.json()
    title = jsonResponse["title"]
    id = jsonResponse["id"]

    messageToUser = "The user id is {} and title is {} And this coming from an api call".format(id, title)
    dispatcher.utter_message(messageToUser)

    return []